Skip to content

Commit

Permalink
fixup! test: add tests for reworked InteractionInput class
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Dec 29, 2023
1 parent bcf78d3 commit 6f8d077
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/scripting_api/interaction_input_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ void main() {
interactionInput.dataSchemaValue,
DataSchemaValue.fromString(testValue),
);

expect(interactionInput, testValue.asInteractionInput());
});

test('Integer', () {
Expand All @@ -55,6 +57,8 @@ void main() {
interactionInput.dataSchemaValue,
DataSchemaValue.fromInteger(testValue),
);

expect(interactionInput, testValue.asInteractionInput());
});

test('Number', () {
Expand All @@ -72,6 +76,8 @@ void main() {
interactionInput.dataSchemaValue,
DataSchemaValue.fromNumber(testValue),
);

expect(interactionInput, testValue.asInteractionInput());
});

test('boolean', () {
Expand All @@ -89,6 +95,8 @@ void main() {
interactionInput.dataSchemaValue,
DataSchemaValue.fromBoolean(testValue),
);

expect(interactionInput, testValue.asInteractionInput());
});

test('an array', () {
Expand All @@ -111,6 +119,8 @@ void main() {
interactionInput.dataSchemaValue.hashCode,
DataSchemaValue.fromArray(testValue).hashCode,
);

expect(interactionInput, testValue.asInteractionInput());
});

test('an object', () {
Expand Down Expand Up @@ -143,6 +153,8 @@ void main() {
interactionInput.dataSchemaValue.hashCode,
DataSchemaValue.fromObject(testValue).hashCode,
);

expect(interactionInput, testValue.asInteractionInput());
});
});
});
Expand Down

0 comments on commit 6f8d077

Please sign in to comment.