mirror of
https://github.com/foss42/apidash.git
synced 2025-09-28 09:35:00 +08:00
17 lines
434 B
Dart
17 lines
434 B
Dart
import 'package:test/test.dart';
|
|
import 'package:apidash/models/kvrow_model.dart';
|
|
|
|
void main() {
|
|
KVRow kvRow1 = const KVRow("harry", 23);
|
|
String kvRow1Expected = "{harry: 23}";
|
|
|
|
test('Testing toString()', () {
|
|
expect(kvRow1.toString(), kvRow1Expected);
|
|
});
|
|
|
|
KVRow kvRow2Expected = const KVRow("winter", "26");
|
|
test('Testing copyWith()', () {
|
|
expect(kvRow1.copyWith(k: "winter", v: "26"), kvRow2Expected);
|
|
});
|
|
}
|