Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TranslatorSpec: Expressions gets translated in parenthesis so correct…
… all tests accordingly Fixes [info] - cpp_stl:2 < 3 ? "foo" : "bar" *** FAILED *** [info] "([(2 < 3) ? (std::string("foo")) : (std::string("bar")]))" was not equal to "([2 < 3) ? (std::string("foo")) : (std::string("bar"]))" (TranslatorSpec.scala:133) [info] Analysis: [info] "([(2 < 3) ? (std::string("foo")) : (std::string("bar")]))" -> "([2 < 3) ? (std::string("foo")) : (std::string("bar"]))" [info] - csharp:2 < 3 ? "foo" : "bar" *** FAILED *** [info] "[(2 < 3 ? "foo" : "bar")]" was not equal to "[2 < 3 ? "foo" : "bar"]" (TranslatorSpec.scala:133) [info] Analysis: [info] "[(2 < 3 ? "foo" : "bar")]" -> "[2 < 3 ? "foo" : "bar"]" [info] - java:2 < 3 ? "foo" : "bar" *** FAILED *** [info] "[(2 < 3 ? "foo" : "bar")]" was not equal to "[2 < 3 ? "foo" : "bar"]" (TranslatorSpec.scala:133) [info] Analysis: [info] "[(2 < 3 ? "foo" : "bar")]" -> "[2 < 3 ? "foo" : "bar"]" [info] - javascript:2 < 3 ? "foo" : "bar" *** FAILED *** [info] "[(2 < 3 ? "foo" : "bar")]" was not equal to "[2 < 3 ? "foo" : "bar"]" (TranslatorSpec.scala:133) [info] Analysis: [info] "[(2 < 3 ? "foo" : "bar")]" -> "[2 < 3 ? "foo" : "bar"]" [info] - lua:2 < 3 ? "foo" : "bar" *** FAILED *** [info] "utils.box_unwrap([(2 < 3) and utils.box_wrap("foo") or ("bar")])" was not equal to "utils.box_unwrap([2 < 3 and utils.box_wrap("foo") or "bar"])" (TranslatorSpec.scala:133) [info] Analysis: [info] "utils.box_unwrap([(2 < 3) and utils.box_wrap("foo") or ("bar")])" -> "utils.box_unwrap([2 < 3 and utils.box_wrap("foo") or "bar"])" [info] - perl:2 < 3 ? "foo" : "bar" *** FAILED *** [info] "[(2 < 3 ? "foo" : "bar")]" was not equal to "[2 < 3 ? "foo" : "bar"]" (TranslatorSpec.scala:133) [info] Analysis: [info] "[(2 < 3 ? "foo" : "bar")]" -> "[2 < 3 ? "foo" : "bar"]" [info] - php:2 < 3 ? "foo" : "bar" *** FAILED *** [info] "[(2 < 3 ? "foo" : "bar")]" was not equal to "[2 < 3 ? "foo" : "bar"]" (TranslatorSpec.scala:133) [info] Analysis: [info] "[(2 < 3 ? "foo" : "bar")]" -> "[2 < 3 ? "foo" : "bar"]" [info] - python:2 < 3 ? "foo" : "bar" *** FAILED *** [info] "[(u"foo" if 2 < 3 else u"bar")]" was not equal to "[u"foo" if 2 < 3 else u"bar"]" (TranslatorSpec.scala:133) [info] Analysis: [info] "[(u"foo" if 2 < 3 else u"bar")]" -> "[u"foo" if 2 < 3 else u"bar"]" [info] - ruby:2 < 3 ? "foo" : "bar" *** FAILED *** [info] "[(2 < 3 ? "foo" : "bar")]" was not equal to "[2 < 3 ? "foo" : "bar"]" (TranslatorSpec.scala:133) [info] Analysis: [info] "[(2 < 3 ? "foo" : "bar")]" -> "[2 < 3 ? "foo" : "bar"]" [info] - cpp_stl:some_bool.to_i *** FAILED *** [info] "[((some_bool()) ? 1 : 0])" was not equal to "[some_bool(])" (TranslatorSpec.scala:197) [info] Analysis: [info] "[((some_bool()) ? 1 : 0])" -> "[some_bool(])" [info] - lua:some_bool.to_i *** FAILED *** [info] "[(self.some_bool and 1 or 0)]" was not equal to "[self.some_bool and 1 or 0]" (TranslatorSpec.scala:197) [info] Analysis: [info] "[(self.some_bool and 1 or 0)]" -> "[self.some_bool and 1 or 0]" [info] - cpp_stl:a != 2 and a != 5 *** FAILED *** [info] "[ ((a() != 2) && (a() != 5)) ]" was not equal to "[a() != 2 && a() != 5]" (TranslatorSpec.scala:280) [info] Analysis: [info] "[ ((a() != 2) && (a() != 5)) ]" -> "[a() != 2 && a() != 5]" [info] - csharp:a != 2 and a != 5 *** FAILED *** [info] "[ ((A != 2) && (A != 5)) ]" was not equal to "[A != 2 && A != 5]" (TranslatorSpec.scala:280) [info] Analysis: [info] "[ ((A != 2) && (A != 5)) ]" -> "[A != 2 && A != 5]" [info] - java:a != 2 and a != 5 *** FAILED *** [info] "[ ((a() != 2) && (a() != 5)) ]" was not equal to "[a() != 2 && a() != 5]" (TranslatorSpec.scala:280) [info] Analysis: [info] "[ ((a() != 2) && (a() != 5)) ]" -> "[a() != 2 && a() != 5]" [info] - javascript:a != 2 and a != 5 *** FAILED *** [info] "[ ((this.a != 2) && (this.a != 5)) ]" was not equal to "[this.a != 2 && this.a != 5]" (TranslatorSpec.scala:280) [info] Analysis: [info] "[ ((this.a != 2) && (this.a != 5)) ]" -> "[this.a != 2 && this.a != 5]" [info] - lua:a != 2 and a != 5 *** FAILED *** [info] "[ ((self.a ~= 2) and (self.a ~= 5)) ]" was not equal to "[self.a ~= 2 and self.a ~= 5]" (TranslatorSpec.scala:280) [info] Analysis: [info] "[ ((self.a ~= 2) and (self.a ~= 5)) ]" -> "[self.a ~= 2 and self.a ~= 5]" [info] - perl:a != 2 and a != 5 *** FAILED *** [info] "[ (($self->a() != 2) && ($self->a() != 5)) ]" was not equal to "[$self->a() != 2 && $self->a() != 5]" (TranslatorSpec.scala:280) [info] Analysis: [info] "[ (($self->a() != 2) && ($self->a() != 5)) ]" -> "[$self->a() != 2 && $self->a() != 5]" [info] - php:a != 2 and a != 5 *** FAILED *** [info] "[ (($this->a() != 2) && ($this->a() != 5)) ]" was not equal to "[$this->a() != 2 && $this->a() != 5]" (TranslatorSpec.scala:280) [info] Analysis: [info] "[ (($this->a() != 2) && ($this->a() != 5)) ]" -> "[$this->a() != 2 && $this->a() != 5]" [info] - python:a != 2 and a != 5 *** FAILED *** [info] "[ ((self.a != 2) and (self.a != 5)) ]" was not equal to "[self.a != 2 and self.a != 5]" (TranslatorSpec.scala:280) [info] Analysis: [info] "[ ((self.a != 2) and (self.a != 5)) ]" -> "[self.a != 2 and self.a != 5]" [info] - ruby:a != 2 and a != 5 *** FAILED *** [info] "[ ((a != 2) && (a != 5)) ]" was not equal to "[a != 2 && a != 5]" (TranslatorSpec.scala:280) [info] Analysis: [info] "[ ((a != 2) && (a != 5)) ]" -> "[a != 2 && a != 5]"
- Loading branch information