Skip to content

Commit 1bb198b

Browse files
committed
test: add tests for DataSchemaValue
1 parent 1065e5b commit 1bb198b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)