twonly-app-dependencies/pointycastle/test/platform/platform_web_test.dart
2025-12-07 16:10:41 +01:00

16 lines
500 B
Dart

@TestOn('browser')
import 'package:pointycastle/src/platform_check/platform_check.dart';
import 'package:test/test.dart';
void main() {
test('is not native', () {
expect(Platform.instance.platform, equals('web'));
expect(Platform.instance.isNative, equals(false));
expect(Platform.instance.fullWidthInteger, equals(false));
});
test('width assertion', () {
expect(() => {Platform.instance.assertFullWidthInteger()},
throwsA(TypeMatcher<PlatformException>()));
});
}