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

Commit

Permalink
Add regression test for #269
Browse files Browse the repository at this point in the history
Fixes #269
  • Loading branch information
kylef committed Apr 1, 2016
1 parent 84d5757 commit 668b822
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/fixtures/mson/regression-269.apib
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Data Structures
### X (X)
24 changes: 24 additions & 0 deletions test/fixtures/mson/regression-269.ast.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"error": {
"code": 4,
"message": "base type 'X' circularly referencing itself",
"location": [
{
"index": 19,
"length": 10
}
]
},
"warnings": [
{
"code": 8,
"message": "unable to find the symbol `X` in the list of named types",
"location": [
{
"index": 19,
"length": 10
}
]
}
]
}
1 change: 1 addition & 0 deletions test/test-RefractDataStructureTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ TEST_MSON_SUCCESS("reference-override");
TEST_MSON_SUCCESS("enum-variants");
TEST_MSON_SUCCESS("inheritance-primitive");
TEST_MSON_SUCCESS("regression-207");
TEST_MSON("regression-269", false);

TEST_REFRACT("mson", "variable-property-name");

Expand Down

0 comments on commit 668b822

Please sign in to comment.