| OLD | NEW |
| 1 library charted.test.chaintransform; | 1 library charted.test.chaintransform; |
| 2 | 2 |
| 3 import 'package:charted/charts/charts.dart'; | 3 import 'package:charted/charts/charts.dart'; |
| 4 import 'package:charted/core/utils.dart'; | 4 import 'package:charted/core/utils.dart'; |
| 5 import 'package:unittest/unittest.dart'; | 5 import 'package:unittest/unittest.dart'; |
| 6 import 'package:observe/observe.dart'; | 6 import 'package:observable/observable.dart'; |
| 7 | 7 |
| 8 main() { | 8 main() { |
| 9 List COLUMNS = [ | 9 List COLUMNS = [ |
| 10 new ChartColumnSpec(label:'Continent', type:ChartColumnSpec.TYPE_STRING), | 10 new ChartColumnSpec(label:'Continent', type:ChartColumnSpec.TYPE_STRING), |
| 11 new ChartColumnSpec(label:'Country', type:ChartColumnSpec.TYPE_STRING), | 11 new ChartColumnSpec(label:'Country', type:ChartColumnSpec.TYPE_STRING), |
| 12 new ChartColumnSpec(label:'City', type:ChartColumnSpec.TYPE_STRING), | 12 new ChartColumnSpec(label:'City', type:ChartColumnSpec.TYPE_STRING), |
| 13 new ChartColumnSpec(label:'Stats1'), | 13 new ChartColumnSpec(label:'Stats1'), |
| 14 new ChartColumnSpec(label:'Stats2'), | 14 new ChartColumnSpec(label:'Stats2'), |
| 15 new ChartColumnSpec(label:'Stats3') | 15 new ChartColumnSpec(label:'Stats3') |
| 16 ]; | 16 ]; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // Brazil | 121 // Brazil |
| 122 expect(result.rows.elementAt(0).elementAt(3), equals(9000)); | 122 expect(result.rows.elementAt(0).elementAt(3), equals(9000)); |
| 123 expect(result.rows.elementAt(0).elementAt(4), closeTo(4, EPSILON)); | 123 expect(result.rows.elementAt(0).elementAt(4), closeTo(4, EPSILON)); |
| 124 | 124 |
| 125 // France | 125 // France |
| 126 expect(result.rows.elementAt(1).elementAt(3), equals(9000)); | 126 expect(result.rows.elementAt(1).elementAt(3), equals(9000)); |
| 127 expect(result.rows.elementAt(1).elementAt(4), closeTo(9, EPSILON)); | 127 expect(result.rows.elementAt(1).elementAt(4), closeTo(9, EPSILON)); |
| 128 }); | 128 }); |
| 129 | 129 |
| 130 } | 130 } |
| OLD | NEW |