-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO
32 lines (30 loc) · 1.47 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
* Implement matchers (stolen from jspec):
- equal === (IdentityMatcher)
- be_a, be_an have constructor of x (InstanceMatcher)
- be_at_least >= (ComparisonMatcher)
- be_at_most <= (ComparisonMatcher)
- be_null == null (IdentityMatcher)
- be_empty length of 0 (IdentityMatcher)
- be_true == true (IdentityMatcher)
- be_false == false (IdentityMatcher)
- be_type be type of x (TypeMatcher)
- be_greater_than > (ComparisonMatcher)
- be_less_than < (ComparisonMatcher)
- be_within checks if x is within the range passed (RangeMatcher)
- have_length length of x (EqualityMatcher)
- include include substring, array element, or hash key (InclusionMatcher)
- match string should match regexp x (RegexMather)
- respond_to property x should be a function (TypeMathcer)
- eql, be matches simple literals (strings, numbers) with == . (EqualityMatcher)
However composites like arrays or 'hashes' are recursively matched,
meaning that [1, 2, [3]].should_eql([1, 2, [3]]) will be true.
* Implement sandboxed scopes in test execution
* Write README
* write Documentations
* Better error messages
* Add Parsers to parse loaded specs before eval (support for better syntax)
* Implement a better HtmlReporter
* Implement a ConsoleReporter
* Implement JScriptEnvironment
* Implement RihnoEnvironment
* Add default options