forked from toddsundsted/stunt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/stunt' into stunt
- Loading branch information
Showing
5 changed files
with
273 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
1.0.12 | ||
* Conrad Irwin - Parse null bytes correctly | ||
* Mirek Rusin - fix LLVM warnings | ||
* gno - Don't generate numbers for keys. closes #13 | ||
* lth - various win32 fixes, including build documentation improvements | ||
* John Stamp - Don't export private symbols. | ||
* John Stamp - Install yajl_version.h, not the template. | ||
* John Stamp - Don't use -fPIC for static lib. Cmake will automatically add it for the shared. | ||
* lth 0 fix paths embedded in dylib upon installation on osx. closes #11 | ||
|
||
1.0.11 | ||
* lth remove -Wno-missing-field-initializers for greater gcc compat (3.4.6) | ||
|
||
1.0.10 | ||
* Brian Maher - yajl is now buildable without a c++ compiler present | ||
* Brian Maher - fix header installation on OSX with cmake 2.8.0 installed | ||
* lth & vitali - allow builder to specify alternate lib directory | ||
for installation (i.e. lib64) | ||
* Vitali Lovich - yajl version number now programatically accessible | ||
* lth - prevent cmake from embedding rpaths in binaries. Static linking | ||
makes this unneccesary. | ||
|
||
1.0.9 | ||
* lth - fix inverted logic causing yajl_gen_double() to always fail on | ||
win32 (thanks to Fredrik Kihlander for the report) | ||
|
||
1.0.8 | ||
* Randall E. Barker - move dllexport defnitions so dlls with proper | ||
exports can again be generated on windows | ||
* lth - add yajl_get_bytes_consumed() which allows the client to | ||
determine the offset as an error, as well as determine how | ||
many bytes of an input buffer were consumed. | ||
* lth - fixes to keep "error offset" up to date (like when the | ||
client callback returns 0) | ||
* Brian Maher - allow client to specify a printing function in | ||
generation | ||
|
||
1.0.7 | ||
* lth fix win32 build (isinf and isnan) | ||
|
||
1.0.6 | ||
* lth fix several compiler warnings | ||
* lth fix generation of invalid json from yajl_gen_double | ||
(NaN is not JSON) | ||
* jstamp support for combining short options in tools | ||
* jstamp exit properly on errors from tools | ||
* octo test success no longer depends on integer size | ||
* max fix configure --prefix | ||
|
||
1.0.5 | ||
* lth several performance improvements related to function | ||
inlinin' | ||
|
||
1.0.4 | ||
* lth fix broken utf8 validation for three & four byte represenations. | ||
thanks to http://github.com/brianmario and | ||
http://github.com/technoweenie | ||
|
||
1.0.3 | ||
* lth fix syntax error in cplusplus extern "C" statements for wider | ||
compiler support | ||
|
||
1.0.2 | ||
* lth update doxygen documentation with new sample code, passing NULL | ||
for allocation functions added in 1.0.0 | ||
|
||
1.0.1 | ||
* lth resolve crash in json_reformatter due to incorrectly ordered | ||
parameters. | ||
|
||
1.0.0 | ||
* lth add 'make install' rules, thaks to Andrei Soroker for the | ||
contribution. | ||
* lth client may override allocation routines at generator or parser | ||
allocation time | ||
* tjw add yajl_parse_complete routine to allow client to explicitly | ||
specify end-of-input, solving the "lonely number" case, where | ||
json text consists only of an element with no explicit syntactic | ||
end. | ||
* tjw many new test cases | ||
* tjw cleanup of code for symmetry and ease of reading | ||
* lth integration of patches from Robert Varga which cleanup | ||
compilation warnings on 64 bit linux | ||
|
||
0.4.0 | ||
* lth buffer overflow bug in yajl_gen_double s/%lf/%g/ - thanks to | ||
Eric Bergstrome | ||
* lth yajl_number callback to allow passthrough of arbitrary precision | ||
numbers to client. Thanks to Hatem Nassrat. | ||
* lth yajl_integer now deals in long, instead of long long. This | ||
combined with yajl_number improves compiler compatibility while | ||
maintaining precision. | ||
* lth better ./configure && make experience (still requires cmake and | ||
ruby) | ||
* lth fix handling of special characters hex 0F and 1F in yajl_encode | ||
(thanks to Robert Geiger) | ||
* lth allow leading zeros in exponents (thanks to Hatem Nassrat) | ||
|
||
0.3.0 | ||
* lth doxygen documentation (html & man) generated as part of the | ||
build | ||
* lth many documentation updates. | ||
* lth fix to work with older versions of cmake (don't use LOOSE_LOOP | ||
constructs) | ||
* lth work around different behavior of freebsd 4 scanf. initialize | ||
parameter to scanf to zero. | ||
* lth all tests run 32x with ranging buffer sizes to stress stream | ||
parsing | ||
* lth yajl_test accepts -b option to allow read buffer size to be | ||
set | ||
* lth option to validate UTF8 added to parser (argument in | ||
yajl_parser_cfg) | ||
* lth fix buffer overrun when chunk ends inside \u escaped text | ||
* lth support client cancelation | ||
|
||
0.2.2 | ||
* lth on windows build debug with C7 symbols and no pdb files. | ||
|
||
0.2.1 | ||
* fix yajl_reformat and yajl_verify to work on arbitrarily sized | ||
inputs. | ||
* fix win32 build break, clean up all errors and warnings. | ||
* fix optimized build flags. | ||
|
||
0.2.0 | ||
* optionally support comments in input text | ||
|
||
0.1.0 | ||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
require 'test_helper' | ||
|
||
class TestMath < Test::Unit::TestCase | ||
|
||
def test_that_random_0_is_invalid | ||
run_test_as('programmer') do | ||
assert_equal E_INVARG, simplify(command(%Q|; return random(0); |)) | ||
end | ||
end | ||
|
||
def test_that_random_1_returns_1 | ||
run_test_as('programmer') do | ||
assert_equal 1, simplify(command(%Q|; return random(1); |)) | ||
end | ||
end | ||
|
||
def test_that_random_returns_a_number_between_1_and_2147483647 | ||
run_test_as('programmer') do | ||
1000.times do | ||
r = simplify command %Q|; return random(); | | ||
assert r > 0 && r <= 2147483647 | ||
end | ||
end | ||
end | ||
|
||
end |
Oops, something went wrong.