diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2017-11-01 17:56:52 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2017-11-01 17:56:52 +0200 |
| commit | aa23bdaf994e84e92ea99fed2d1a024bee8589e1 (patch) | |
| tree | ff98d8c92bb4c6fbbe81e9c00daac0e60dc14f1f /tests | |
| parent | f27c02d9b77d1f179ba676e711c79ed53bceb218 (diff) | |
| download | nimrec-aa23bdaf994e84e92ea99fed2d1a024bee8589e1.tar.gz nimrec-aa23bdaf994e84e92ea99fed2d1a024bee8589e1.zip | |
Reorganize code
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test.nim b/tests/test.nim index 5fb9821..70a9665 100644 --- a/tests/test.nim +++ b/tests/test.nim @@ -2,7 +2,7 @@ import unittest import streams import sequtils -import nimrec +import nimrec/[parser, record, recordset, utils] suite "parsing": test "basics": @@ -95,12 +95,12 @@ Name: Foobar! test "parse error if colon missing": let ss = newStringStream("Name\nAge: 34\n") - expect(RecParseError): + expect(ParseError): discard toSeq(records(ss)) test "parse error if invalid label": let ss = newStringStream("Name: John Doe\nFoo-bar: 111") - expect(RecParseError): + expect(ParseError): discard toSeq(records(ss)) test "label can start with %": @@ -114,7 +114,7 @@ Name: Foobar! test "field must be terminated by newline": let ss = newStringStream("%rec: Entry\n%type: Id int") - expect(RecParseError): + expect(ParseError): discard toSeq(records(ss)) test "multiple fields with same label": |
