LibAC-dart/test/ciphers.dart
2025-05-25 00:01:08 -07:00

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));
});
}