Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
stable release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseCoretta committed Oct 7, 2023
1 parent dcdd9a8 commit 7b4c99b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,23 @@ func ExampleNumberForm_Gt() {
// Output: 4658 > 4501: true
}

func ExampleNumberForm_Gt_byString() {
nf, _ := NewNumberForm(`4658`)
oth := `4501`
fmt.Printf("%s > %s: %t", nf, oth, nf.Gt(oth))
// Output: 4658 > 4501: true
}

func ExampleNumberForm_Lt() {
nf, _ := NewNumberForm(4658)
oth := 4501
fmt.Printf("%s < %d: %t", nf, oth, nf.Lt(oth))
// Output: 4658 < 4501: false
}

func ExampleNumberForm_Lt_byString() {
nf, _ := NewNumberForm(`4658`)
oth := `4501`
fmt.Printf("%s < %s: %t", nf, oth, nf.Lt(oth))
// Output: 4658 < 4501: false
}

0 comments on commit 7b4c99b

Please sign in to comment.