Skip to content

Commit f09c822

Browse files
committed
TranslatorSpec: Add missing translator tests for C++
1 parent 049b464 commit f09c822

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jvm/src/test/scala/io/kaitai/struct/translators/TranslatorSpec.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ class TranslatorSpec extends AnyFunSpec {
390390
describe("arrays") {
391391
describe("literals") {
392392
full("[0, 1, 100500]", CalcIntType, ArrayTypeInStream(CalcIntType), ResultMap(
393+
CppCompiler -> "",
393394
CSharpCompiler -> "new List<int> { 0, 1, 100500 }",
394395
GoCompiler -> "[]int{0, 1, 100500}",
395396
JavaCompiler -> "new ArrayList<Integer>(Arrays.asList(0, 1, 100500))",
@@ -868,6 +869,7 @@ class TranslatorSpec extends AnyFunSpec {
868869

869870
// type enforcement: casting to array of integers
870871
full("[0, 1, 2].as<u1[]>", CalcIntType, ArrayTypeInStream(Int1Type(false)), ResultMap(
872+
CppCompiler -> "",
871873
CSharpCompiler -> "new List<byte> { 0, 1, 2 }",
872874
GoCompiler -> "[]uint8{0, 1, 2}",
873875
JavaCompiler -> "new ArrayList<Integer>(Arrays.asList(0, 1, 2))",

0 commit comments

Comments
 (0)