diff options
author | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-01-15 17:07:07 -0500 |
---|---|---|
committer | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-01-15 17:39:14 -0500 |
commit | d649cec033e961e7d6e16a24e1551083e1ec187a (patch) | |
tree | aa0fbc3f39cc1845ccf26ce450956abcf2bd0e2b /test/captures.nim | |
parent | a198c10d6c4f2c2c5434c0edb0fb4f519906433c (diff) | |
download | Nim-d649cec033e961e7d6e16a24e1551083e1ec187a.tar.gz |
s/asSeq/toSeq
`toSeq` is a better name for it
Diffstat (limited to 'test/captures.nim')
-rw-r--r-- | test/captures.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/captures.nim b/test/captures.nim index 9b8a7580e..9e7698f6b 100644 --- a/test/captures.nim +++ b/test/captures.nim @@ -50,10 +50,10 @@ suite "captures": test "capture sequence": let ex1 = "foo".match(initRegex("(?<foo>foo)(?<bar>bar)?")) - check(ex1.captures.asSeq == @["foo", nil]) - check(ex1.captureBounds.asSeq == @[Some(0..3), None[Slice[int]]()]) - check(ex1.captures.asSeq("") == @["foo", ""]) + check(ex1.captures.toSeq == @["foo", nil]) + check(ex1.captureBounds.toSeq == @[Some(0..3), None[Slice[int]]()]) + check(ex1.captures.toSeq("") == @["foo", ""]) let ex2 = "foobar".match(initRegex("(?<foo>foo)(?<bar>bar)?")) - check(ex2.captures.asSeq == @["foo", "bar"]) + check(ex2.captures.toSeq == @["foo", "bar"]) |