-
Notifications
You must be signed in to change notification settings - Fork 0
fix: bad logic, add tests for every module #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
133 commits
Select commit
Hold shift + click to select a range
d97b552
tests(cbrt): add tests in cbrt.test.ts
nberlette f45811c
tests(log2): add tests in log2.test.ts
nberlette ff64da8
tests(log10): add tests in log10.test.ts
nberlette 3a7af6f
tests(trunc): add tests in trunc.test.ts
nberlette 34563ee
tests(ceil): add tests in ceil.test.ts
nberlette 90d788b
tests(asin): add tests in asin.test.ts
nberlette 19dfee0
tests(random): add tests in random.test.ts
nberlette 42b1e64
tests(log): add tests in log.test.ts
nberlette a765059
tests(float32): add tests in float32/guards.test.ts
nberlette cd478d8
tests(float32): add tests in float32/constants.test.ts
nberlette 19b928f
tests(float32): add tests in float32/index.test.ts
nberlette 51a0297
tests(float32): add tests in float32/encode.test.ts
nberlette 80f741f
tests(float32): add tests in float32/decode.test.ts
nberlette 423dd03
tests(float32): add tests in float32/round.test.ts
nberlette 3835bfc
tests(clamp): add tests in clamp.test.ts
nberlette 112661c
tests(clz32): add tests in clz32.test.ts
nberlette bc9441d
tests(abs): add tests in abs.test.ts
nberlette 95175de
tests(constants): add tests in constants/log2e.test.ts
nberlette de6fff9
tests(constants): add tests in constants/max_safe_integer.test.ts
nberlette 9692166
tests(constants): add tests in constants/ln2.test.ts
nberlette 423dbb9
tests(constants): add tests in constants/log10e.test.ts
nberlette b1788d5
tests(constants): add tests in constants/positive_zero.test.ts
nberlette 9fe6267
tests(constants): add tests in constants/epsilon.test.ts
nberlette 70429d5
tests(constants): add tests in constants/negative_zero.test.ts
nberlette e7ba4f8
tests(constants): add tests in constants/index.test.ts
nberlette 0a86f5a
tests(constants): add tests in constants/nan.test.ts
nberlette 702b8ce
tests(constants): add tests in constants/sqrt1_2.test.ts
nberlette 1d2874a
tests(constants): add tests in constants/ln10.test.ts
nberlette de73d8f
tests(constants): add tests in constants/positive_infinity.test.ts
nberlette 30e0ce6
tests(constants): add tests in constants/min_safe_integer.test.ts
nberlette b25afdb
tests(constants): add tests in constants/e.test.ts
nberlette 2f1ec35
tests(constants): add tests in constants/max_value.test.ts
nberlette 671ee01
tests(constants): add tests in constants/negative_infinity.test.ts
nberlette aa78c31
tests(constants): add tests in constants/pi.test.ts
nberlette e59164b
tests(constants): add tests in constants/sqrt2.test.ts
nberlette 6339b2d
tests(constants): add tests in constants/infinity.test.ts
nberlette 057b0ac
tests(constants): add tests in constants/min_value.test.ts
nberlette c4eabad
tests(expm1): add tests in expm1.test.ts
nberlette 88c15b5
tests(sin): add tests in sin.test.ts
nberlette 3227628
tests(constants): add tests in constants.test.ts
nberlette 2afde59
tests(atan): add tests in atan.test.ts
nberlette c1ad7ec
tests(max): add tests in max.test.ts
nberlette 414c082
tests(asinh): add tests in asinh.test.ts
nberlette 2605942
tests(sinh): add tests in sinh.test.ts
nberlette 4c19448
tests(index): add tests in index.test.ts
nberlette 691a3dc
tests(acos): add tests in acos.test.ts
nberlette cf10a1c
tests(atan2): add tests in atan2.test.ts
nberlette 7fa57d2
tests(guards): add tests in guards/positive_zero.test.ts
nberlette 8414cdb
tests(guards): add tests in guards/safe_integer.test.ts
nberlette 03ce7aa
tests(guards): add tests in guards/negative_zero.test.ts
nberlette c4b51a1
tests(guards): add tests in guards/index.test.ts
nberlette 96d9254
tests(guards): add tests in guards/nan.test.ts
nberlette a32c1bb
tests(guards): add tests in guards/integer.test.ts
nberlette bea4c5c
tests(guards): add tests in guards/positive_infinity.test.ts
nberlette f4c48d9
tests(guards): add tests in guards/negative_infinity.test.ts
nberlette d8ad953
tests(guards): add tests in guards/infinity.test.ts
nberlette 2f7a0d9
tests(guards): add tests in guards/finite.test.ts
nberlette bc54f3e
tests(tan): add tests in tan.test.ts
nberlette 08aed8c
tests(ieee754): add tests in ieee754.test.ts
nberlette f251b51
tests(floor): add tests in floor.test.ts
nberlette 151dc4f
tests(tanh): add tests in tanh.test.ts
nberlette a681e82
tests(imul): add tests in imul.test.ts
nberlette 83de2cb
tests(float16): add tests in float16/guards.test.ts
nberlette 113645b
tests(float16): add tests in float16/constants.test.ts
nberlette bff2bfa
tests(float16): add tests in float16/index.test.ts
nberlette 034a367
tests(float16): add tests in float16/encode.test.ts
nberlette 0d95931
tests(float16): add tests in float16/decode.test.ts
nberlette 8fea689
tests(float16): add tests in float16/round.test.ts
nberlette 111d253
tests(types): add tests in types/precision.test.ts
nberlette 76bcb7d
tests(types): add tests in types/safe_integer.test.ts
nberlette 2bd2971
tests(types): add tests in types/index.test.ts
nberlette 97d1cd9
tests(types): add tests in types/integer.test.ts
nberlette 9e8288f
tests(types): add tests in types/finite.test.ts
nberlette 078fea9
tests(types): add tests in types/float.test.ts
nberlette a11be3f
tests(cos): add tests in cos.test.ts
nberlette 4c856bf
tests(sqrt): add tests in sqrt.test.ts
nberlette 745fdca
tests(atanh): add tests in atanh.test.ts
nberlette df5067c
tests(min): add tests in min.test.ts
nberlette 61ec534
tests(pow): add tests in pow.test.ts
nberlette b63d225
tests(trigonometry): add tests in trigonometry.test.ts
nberlette c8801bf
tests(sign): add tests in sign.test.ts
nberlette da145a1
tests(exp): add tests in exp.test.ts
nberlette 9e5bb65
tests(f16round): add tests in f16round.test.ts
nberlette d1f77d4
tests(log1p): add tests in log1p.test.ts
nberlette 16c47f9
tests(round): add tests in round.test.ts
nberlette 39c3a8e
tests(hypot): add tests in hypot.test.ts
nberlette bedc095
tests(cosh): add tests in cosh.test.ts
nberlette a7b5532
tests(fround): add tests in fround.test.ts
nberlette a8c6bb1
tests(acosh): add tests in acosh.test.ts
nberlette e64480e
tests(internal): create shared test helpers module
nberlette 001eb18
chore(internal): add ArrayFrom to primordials
nberlette a91ded9
refactor(random): clean up MT19937 class, use ArrayFrom primordial
nberlette e828473
fix(float16,float32): use type-only imports for FloatFormat
nberlette 3ee29e2
fix(ieee754): ensure floating point rounding logic is sound
nberlette b03dbd3
chore: update license
nberlette 274186d
docs(readme): improve doctests, use node:assert
nberlette 2e5c89d
config: rewrite CI workflow for npm trusted publishing
nberlette 2c4e952
fix(constants): ensure negative-zero module is exported
nberlette 4213810
tests: fix doctest error in src/index.ts
nberlette d8b588e
config: update deno.json tasks and settings
nberlette 5c7d05e
fix(abs): ensure abs behaves like Math.abs
nberlette 9603b7d
fix(asinh): ensure asinh behaves like Math.asinh
nberlette 623e4fd
fix(atan): ensure atan behaves like Math.atan
nberlette 567ce93
fix(atan2): ensure atan2 behaves like Math.atan2
nberlette 4d8cbfc
fix(cbrt): ensure cbrt behaves like Math.cbrt
nberlette c3c3c27
fix(ceil): ensure ceil behaves like Math.ceil
nberlette a268b9e
fix(clz32): ensure clz32 behaves like Math.clz32
nberlette d57524b
fix(floor): ensure floor behaves like Math.floor
nberlette f0735a3
fix(hypot): ensure hypot behaves like Math.hypot
nberlette fb9e145
fix(min): ensure min behaves like Math.min
nberlette ede6803
fix(round): ensure round behaves like Math.round
nberlette 079fc88
fix(sinh): ensure sinh behaves like Math.sinh
nberlette cf7b7f8
fix(sqrt): ensure sqrt behaves like Math.sqrt
nberlette 1d8ba71
fix(trunc): ensure trunc behaves like Math.trunc
nberlette 286227f
refactor(float16,float32)!: remove constants re-exports
nberlette 7213f8d
ci: add build script
nberlette 7c25f8e
ci: add coveralls integration to workflow
nberlette a73082a
chore: update gitignore
nberlette ecee653
tests: update readme doc tests, fix some coverage and typechecking is…
nberlette 0fce7dc
chore: fmt
nberlette 0ddc822
refactor(scripts): improve build script
nberlette f7b5472
refactor(atan2): remove unreachable code branches
nberlette 888ba21
config: update exclusions for linting, testing, formatting
nberlette 229ad1d
fix: lint errors
nberlette 2336cee
fix(atanh): align behavior with native implementation
nberlette bb3e061
fix(log): ensure output matches Math.log
nberlette d066b07
docs(readme): improve testable examples in readme
nberlette cd01802
config: use deno task instead of deno run
nberlette ff5378a
chore: update .gitignore
nberlette 32576b1
refactor(tests): move all .test.ts files into an isolated tests dir
nberlette 904b5f4
fix(tests): update import paths for all test files
nberlette e3f2daa
chore: fmt
nberlette ccc8711
Merge pull request #15 from nberlette/refactor/isolate-tests
nberlette File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -10,3 +10,5 @@ Thumbs.db | |
| .coverage | ||
| coverage | ||
| .cov | ||
| npm | ||
| !deno.lock | ||
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.