We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1065e5b commit 1bb198bCopy full SHA for 1bb198b
test/scripting_api/data_schema_value_test.dart
@@ -0,0 +1,19 @@
1
+// Copyright 2023 Contributors to the Eclipse Foundation. All rights reserved.
2
+// Use of this source code is governed by a BSD-style
3
+// license that can be found in the LICENSE file.
4
+//
5
+// SPDX-License-Identifier: BSD-3-Clause
6
+
7
+import 'package:dart_wot/scripting_api.dart';
8
+import 'package:test/test.dart';
9
10
+void main() {
11
+ group('DataSchemaValue', () {
12
+ test('should use the wrapped value for toString()', () {
13
+ const inputValue = 42;
14
+ final dataSchemaValue = DataSchemaValue.fromNumber(inputValue);
15
16
+ expect(dataSchemaValue.toString() == inputValue.toString(), isTrue);
17
+ });
18
19
+}
0 commit comments