Spaces:
Build error
Build error
Download test/core_test.dart from FriendlyUser/dart_off_server: direct link, hf CLI and curl.
- Browser
- Download file 594 Bytes
-
https://huggingface.co/spaces/FriendlyUser/dart_off_server/resolve/main/test/core_test.dart
- Command line
-
hf download hf://spaces/FriendlyUser/dart_off_server/test/core_test.dart
-
curl -L -o core_test.dart https://huggingface.co/spaces/FriendlyUser/dart_off_server/resolve/main/test/core_test.dart
594 Bytes
| // load sample.html and run findTopSteamSellers, expect list of top steam sellers | |
| import 'dart:io'; | |
| import 'package:test/test.dart'; | |
| import "package:dart_off_server/core.dart" as core; | |
| import "package:path/path.dart" as p; | |
| void main() { | |
| test('calculate', () { | |
| var rawHTMLPath = p.join(p.current, 'test', 'sample.html'); | |
| // load rawHTML from rawHTMLPath | |
| File file = File(rawHTMLPath); | |
| var rawHTML = file.readAsStringSync(); | |
| var steamSellers = core.parseSteamTopSellers(rawHTML); | |
| // greater than 5 | |
| expect(steamSellers.length, greaterThan(5)); | |
| }); | |
| } | |