Skip to content

Commit

Permalink
Test for scientific notation
Browse files Browse the repository at this point in the history
Closes #541
  • Loading branch information
bitwiseman committed Sep 29, 2014
1 parent 3befb53 commit 5d4988e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/test/beautify-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,7 @@ function run_beautifier_tests(test_obj, Urlencoded, js_beautify, html_beautify,
bt('var a = 5 + function();');

bt('3.*7;', '3. * 7;');
bt('a = 1.e-64 * 0.5e+4 / 6e-23;');
bt('import foo.*;', 'import foo.*;'); // actionscript's import
test_fragment('function f(a: a, b: b)'); // actionscript

Expand Down
1 change: 1 addition & 0 deletions python/jsbeautifier/tests/testjsbeautifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,7 @@ def test_beautifier(self):


bt('3.*7;', '3. * 7;')
bt('a = 1.e-64 * 0.5e+4 / 6e-23;');
bt('import foo.*;', 'import foo.*;') # actionscript's import
test_fragment('function f(a: a, b: b)') # actionscript
bt('foo(a, function() {})');
Expand Down

0 comments on commit 5d4988e

Please sign in to comment.