Skip to content

Commit

Permalink
move test for nim-lang#7632 above import strformat
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosborn committed May 17, 2019
1 parent f1a8edc commit b93d509
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tests/stdlib/tstrformat.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ action: "run"
output: '''Received (name: "Foo", species: "Bar")'''
"""

# issue #7632

import genericstrformat

doAssert works(5) == "formatted 5"
doAssert fails0(6) == "formatted 6"
doAssert fails(7) == "formatted 7"
doAssert fails2[0](8) == "formatted 8"

# other tests

import strformat

type Obj = object
Expand Down Expand Up @@ -93,16 +104,6 @@ let v1 = Vec2[float32](x:1.0, y: 2.0)
let v2 = Vec2[int32](x:1, y: 1337)
doAssert fmt"v1: {v1:+08} v2: {v2:>4}" == "v1: [+0000001, +0000002] v2: [ 1, 1337]"

# issue #7632

import genericstrformat

doAssert works(5) == "formatted 5"
doAssert fails0(6) == "formatted 6"
doAssert fails(7) == "formatted 7"
doAssert fails2[0](8) == "formatted 8"


# bug #11012

type
Expand Down

0 comments on commit b93d509

Please sign in to comment.