Skip to content

Commit

Permalink
positive and negative tests for --check-afm
Browse files Browse the repository at this point in the history
  • Loading branch information
mantkiew committed Aug 15, 2013
1 parent 6522362 commit 690408c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
12 changes: 12 additions & 0 deletions test/negative/i199-afm-check.cfr
@@ -0,0 +1,12 @@
//# OPTIONS --check-afm
// http://gsd.uwaterloo.ca:8888/question/867/add-attributed-feature-models-check
// This model should fail the afm test for lines 9, 10, 11, and 12

a 0..0
b ?
c
d 1..1
e 0..*
f +
g 1..*
h 2..5
11 changes: 6 additions & 5 deletions test/positive/i199-afm-check.cfr
@@ -1,8 +1,9 @@
//# OPTIONS --check-afm
// http://gsd.uwaterloo.ca:8888/question/867/add-attributed-feature-models-check
// This model should fail the attributed feature model check for lines 5,6, and 7
// This model should pass the attributed feature model check
a
b ?
c 2..*
d +
e *
f 0
c 0..1
d 1..1
e 0..0
f 1
1 change: 1 addition & 0 deletions test/positive/i199-afm-with-inhritance.cfr
@@ -1,4 +1,5 @@
//# OPTIONS --check-afm
// http://gsd.uwaterloo.ca:8888/question/867/add-attributed-feature-models-check

abstract A

Expand Down

0 comments on commit 690408c

Please sign in to comment.