Skip to content

Commit

Permalink
TranslatorSpec: Python: fix translation of array literals where all e…
Browse files Browse the repository at this point in the history
…lements between 0 and 255

Fixes

[info] - python:[255, 0, 255] *** FAILED ***
[info]   "b"\[xFF\x00\xFF]"" was not equal to "b"\[255\000\255]"" (TranslatorSpec.scala:319)
[info]   Analysis:
[info]   "b"\[xFF\x00\xFF]"" -> "b"\[255\000\255]""
  • Loading branch information
Mingun committed Mar 8, 2024
1 parent e2b6967 commit b15324d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class TranslatorSpec extends AnyFunSpec {
LuaCompiler -> "\"\\255\\000\\255\"",
PerlCompiler -> "pack('C*', (255, 0, 255))",
PHPCompiler -> "\"\\xFF\\x00\\xFF\"",
PythonCompiler -> "b\"\\255\\000\\255\"",
PythonCompiler -> "b\"\\xFF\\x00\\xFF\"",
RubyCompiler -> "[255, 0, 255].pack('C*')"
))
}
Expand Down

0 comments on commit b15324d

Please sign in to comment.