blob: 945c445d14927bc79b6c413c0cd0c0437ef59483 [file] [log] [blame]
@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>()));
});
}