Skip to content

Commit

Permalink
added tests for quotes and transpositions on one line as described in…
Browse files Browse the repository at this point in the history
… issue #7
  • Loading branch information
lakras committed Apr 18, 2019
1 parent 1f2e099 commit 76d5b72
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,3 +494,19 @@ julia = "function my_awesome_function(image,filename,other_inputs)\n"
+ "end";
assert(julia === translator.translate(matlab));



// from issue https://github.com/lakras/matlab-to-julia/issues/7
// transpose
// X = u*v';
matlab = "X = u*v'";
julia = "X = u*v'";
assert(julia === translator.translate(matlab));

// quotes
// X = 'hello there';
matlab = "X = 'hello there'";
julia = "X = \"hello there\"";
assert(julia === translator.translate(matlab));


0 comments on commit 76d5b72

Please sign in to comment.