@@ -3,7 +3,6 @@ library angular_spec;
3
3
import 'dart:mirrors' ;
4
4
5
5
import '_specs.dart' ;
6
- import 'package:angular/utils.dart' ;
7
6
import 'package:angular/tools/symbol_inspector/symbol_inspector.dart' ;
8
7
9
8
main () {
@@ -16,34 +15,6 @@ main() {
16
15
});
17
16
});
18
17
19
- describe ('relaxFnApply' , () {
20
- it ('should work with 6 arguments' , () {
21
- var sixArgs = [1 , 1 , 2 , 3 , 5 , 8 ];
22
- expect (relaxFnApply (() => "none" , sixArgs)).toEqual ("none" );
23
- expect (relaxFnApply ((a) => a, sixArgs)).toEqual (1 );
24
- expect (relaxFnApply ((a, b) => a + b, sixArgs)).toEqual (2 );
25
- expect (relaxFnApply ((a, b, c) => a + b + c, sixArgs)).toEqual (4 );
26
- expect (relaxFnApply ((a, b, c, d) => a + b + c + d, sixArgs)).toEqual (7 );
27
- expect (relaxFnApply ((a, b, c, d, e) => a + b + c + d + e, sixArgs)).toEqual (12 );
28
- });
29
-
30
- it ('should work with 0 arguments' , () {
31
- var noArgs = [];
32
- expect (relaxFnApply (() => "none" , noArgs)).toEqual ("none" );
33
- expect (relaxFnApply (([a]) => a, noArgs)).toEqual (null );
34
- expect (relaxFnApply (([a, b]) => b, noArgs)).toEqual (null );
35
- expect (relaxFnApply (([a, b, c]) => c, noArgs)).toEqual (null );
36
- expect (relaxFnApply (([a, b, c, d]) => d, noArgs)).toEqual (null );
37
- expect (relaxFnApply (([a, b, c, d, e]) => e, noArgs)).toEqual (null );
38
- });
39
-
40
- it ('should fail with not enough arguments' , () {
41
- expect (() {
42
- relaxFnApply ((required , alsoRequired) => "happy" , [1 ]);
43
- }).toThrowWith (message: 'Unknown function type, expecting 0 to 5 args.' );
44
- });
45
- });
46
-
47
18
describe ('symbols' , () {
48
19
it ('should not export unknown symbols from animate' , () {
49
20
LibraryInfo libraryInfo;
0 commit comments