Permalink
Browse files

Rebuild type spectest

  • Loading branch information...
1 parent 39ac0d4 commit ee8248a765cb55dd15720c83fd0de896100ffa01 Steven Haryanto (on Asus Zenbook) committed Jan 11, 2013
@@ -63,4 +63,4 @@ tests:
- div_by
- 5
valid: 1
-version: v0.9.22 (generated by devscripts/gen-type-spectest on Tue Dec 4 16:54:51 2012)
+version: v0.9.22 (generated by devscripts/gen-type-spectest on Fri Jan 11 13:35:48 2013)
@@ -63,4 +63,4 @@ tests:
- div_by
- 5
valid: 1
-version: v0.9.22 (generated by devscripts/gen-type-spectest on Tue Dec 4 16:54:51 2012)
+version: v0.9.22 (generated by devscripts/gen-type-spectest on Fri Jan 11 13:35:48 2013)
@@ -91,6 +91,14 @@ tests:
- a
valid: 0
-
+ dies: 1
+ input: *1
+ name: clause (dies, unknown clause)
+ schema:
+ - array*
+ - clause
+ - foo
+ -
input: *1
name: clause (ok)
schema:
@@ -109,9 +117,28 @@ tests:
- clause
-
- min_len
- - 1
+ - 2
valid: 0
-
+ dies: 1
+ input: *1
+ name: clset (dies, unknown clause)
+ schema:
+ - array*
+ - clset
+ -
+ foo: 1
+ -
+ dies: 1
+ input: *1
+ name: clset (dies, unknown attr)
+ schema:
+ - array*
+ - clset
+ -
+ min_len: 1
+ min_len.foo: 1
+ -
input: *1
name: clset (empty = ok)
schema:
@@ -122,6 +149,16 @@ tests:
valid: 1
-
input: *1
+ name: clset (ignored clause/attr = ok)
+ schema:
+ - array*
+ - clset
+ -
+ _foo: 1
+ foo._bar: 2
+ valid: 1
+ -
+ input: *1
name: clset (ok + ok = ok)
schema:
- array*
@@ -148,7 +185,7 @@ tests:
- clset
-
max_len: 1
- min_len: 1
+ min_len: 2
valid: 0
-
input: *1
@@ -158,7 +195,7 @@ tests:
- clset
-
max_len: 0
- min_len: 1
+ min_len: 2
valid: 0
-
input: &3 []
@@ -296,7 +333,7 @@ tests:
- *6
valid: 0
-
- errors: 2
+ errors: 1
input: *5
name: is& (nok + nok)
schema:
@@ -354,7 +391,7 @@ tests:
- and
valid: 0
-
- errors: 2
+ errors: 1
input: *5
name: is.op=and (nok + nok)
schema:
@@ -522,7 +559,7 @@ tests:
- none
valid: 0
-
- errors: 2
+ errors: 1
input: *5
name: is.op=none (ok + ok)
schema:
@@ -634,7 +671,7 @@ tests:
- *9
valid: 0
-
- errors: 2
+ errors: 1
input: *5
name: in& (nok + nok)
schema:
@@ -693,7 +730,7 @@ tests:
- and
valid: 0
-
- errors: 2
+ errors: 1
input: *5
name: in.op=and (nok + nok)
schema:
@@ -861,7 +898,7 @@ tests:
- none
valid: 0
-
- errors: 2
+ errors: 1
input: *5
name: in.op=none (ok + ok)
schema:
@@ -981,11 +1018,33 @@ tests:
- int
valid: 0
-
+ input: &14
+ - 1
+ - '1.2'
+ name: elems (ok)
+ schema:
+ - array
+ - elems
+ -
+ - int
+ - float
+ valid: 1
+ -
+ input: *14
+ name: elems (nok)
+ schema:
+ - array
+ - elems
+ -
+ - int
+ - int
+ valid: 0
+ -
input:
- ~
- 1
name: elems (nok, first elem required)
- schema: &14
+ schema: &15
- array
-
elems:
@@ -999,45 +1058,45 @@ tests:
input:
- 1
name: elems (ok, missing elem set to undef)
- schema: *14
+ schema: *15
valid: 1
-
input:
- 1
- ~
name: elems (ok, second elem optional)
- schema: *14
+ schema: *15
valid: 1
-
input:
- 1
- '1.1'
name: elems (ok 2)
- schema: *14
+ schema: *15
valid: 1
-
input:
- 1
- '1.1'
- ~
name: elems (ok, extra elems ignored)
- schema: *14
+ schema: *15
valid: 1
-
input:
- 1
- '1.1'
- foo
name: elems (ok, extra elems ignored 2)
- schema: *14
+ schema: *15
valid: 1
-
input:
- 1
name: elems (ok, create_default=0)
output:
- 1
- schema: &15
+ schema: &16
- array
-
elems:
@@ -1056,6 +1115,6 @@ tests:
output:
- 1
- 2
- schema: *15
+ schema: *16
valid: 1
-version: v0.9.22 (generated by devscripts/gen-type-spectest on Tue Dec 4 16:54:51 2012)
+version: v0.9.22 (generated by devscripts/gen-type-spectest on Fri Jan 11 13:35:48 2013)
@@ -76,6 +76,33 @@ tests:
valid: 0
-
+ dies: 1
+ input: 1
+ name: clause (dies, unknown clause)
+ schema:
+ - bool*
+ - clause
+ - foo
+ -
+ dies: 1
+ input: 1
+ name: clset (dies, unknown clause)
+ schema:
+ - bool*
+ - clset
+ -
+ foo: 1
+ -
+ dies: 1
+ input: 1
+ name: clset (dies, unknown attr)
+ schema:
+ - bool*
+ - clset
+ -
+ min_len: 1
+ min_len.foo: 1
+ -
input: 1
name: clset (empty = ok)
schema:
@@ -86,6 +113,16 @@ tests:
valid: 1
-
input: 1
+ name: clset (ignored clause/attr = ok)
+ schema:
+ - bool*
+ - clset
+ -
+ _foo: 1
+ foo._bar: 2
+ valid: 1
+ -
+ input: 1
name: .err_level=error (clause=is, ok)
schema:
- bool
@@ -215,7 +252,7 @@ tests:
- 1
valid: 0
-
- errors: 2
+ errors: 1
input: 0
name: is& (nok + nok)
schema:
@@ -273,7 +310,7 @@ tests:
- and
valid: 0
-
- errors: 2
+ errors: 1
input: 0
name: is.op=and (nok + nok)
schema:
@@ -441,7 +478,7 @@ tests:
- none
valid: 0
-
- errors: 2
+ errors: 1
input: 0
name: is.op=none (ok + ok)
schema:
@@ -551,7 +588,7 @@ tests:
- *3
valid: 0
-
- errors: 2
+ errors: 1
input: 0
name: in& (nok + nok)
schema:
@@ -610,7 +647,7 @@ tests:
- and
valid: 0
-
- errors: 2
+ errors: 1
input: 0
name: in.op=and (nok + nok)
schema:
@@ -778,7 +815,7 @@ tests:
- none
valid: 0
-
- errors: 2
+ errors: 1
input: 0
name: in.op=none (ok + ok)
schema:
@@ -1012,4 +1049,4 @@ tests:
- is_true
- ~
valid: 1
-version: v0.9.22 (generated by devscripts/gen-type-spectest on Tue Dec 4 16:54:51 2012)
+version: v0.9.22 (generated by devscripts/gen-type-spectest on Fri Jan 11 13:35:48 2013)
Oops, something went wrong.

0 comments on commit ee8248a

Please sign in to comment.