16 lines
480 B
Dart
16 lines
480 B
Dart
import 'package:libac_dart/utils/DBIKC.dart';
|
|
import 'package:test/expect.dart';
|
|
import 'package:test/scaffolding.dart';
|
|
|
|
void main() {
|
|
// Various tests!
|
|
test("DBIKC", () async {
|
|
// This test will check if DBIKC properly encodes.
|
|
String input = "KAZNIA";
|
|
String expected = "RUBIU";
|
|
String encoded = DoubleBreastedInterruptedKeyCipher.encode(input);
|
|
|
|
expect(expected, encoded);
|
|
expect(input, DoubleBreastedInterruptedKeyCipher.decode(encoded));
|
|
});
|
|
}
|