Skip to content

Commit

Permalink
Improving test coverage [part 5]
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoejp committed Sep 15, 2024
1 parent aed0625 commit 8472aa2
Show file tree
Hide file tree
Showing 55 changed files with 1,052 additions and 658 deletions.
4 changes: 4 additions & 0 deletions documentation/bookmark/health/exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reference

0. [A Muscle Supplement worthy of Consideration... (that isn’t creatine)](https://youtu.be/Z-x076J2tfE)

4 changes: 4 additions & 0 deletions documentation/bookmark/keyboard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reference

0. [Typing in 3D! (1st Master Forge Demonstration)](https://www.youtube.com/watch?v=PRsWVO8NkAM)

1 change: 1 addition & 0 deletions documentation/bookmark/media/podcast.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Reference

0. [Podcast Index](https://podcastindex.org/)
0. [Erik Torenberg on the Evolution of Media](https://www.youtube.com/watch?v=beR7vqtW_X4)

File renamed without changes.
4 changes: 4 additions & 0 deletions documentation/bookmark/memory/pointer/tagging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reference

0. [What is the best pointer tagging method?](https://coredumped.dev/2024/09/09/what-is-the-best-pointer-tagging-method/)

2 changes: 2 additions & 0 deletions documentation/bookmark/natural_language.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Reference

0. [Where does punctuation come from?!](https://youtu.be/k9Re5otW-v0)
0. [Why we should go back to writing in runes](https://youtu.be/4npuVmGxXuk)
0. [Ancient Echoes](https://www.etymonline.com/columns/post/ancient-echoes)

1 change: 1 addition & 0 deletions documentation/bookmark/research/data.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Reference

0. [Source Cooperative](https://beta.source.coop/)
0. [Academic Torrents](https://academictorrents.com/)

4 changes: 4 additions & 0 deletions documentation/bookmark/science/pseudo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reference

0. [What I learned as a hired consultant to autodidact physicists](https://aeon.co/ideas/what-i-learned-as-a-hired-consultant-for-autodidact-physicists)

4 changes: 4 additions & 0 deletions documentation/bookmark/type_theory/homotopy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reference

0. [Robert Harper - Homotopy Type Theory](https://www.youtube.com/playlist?list=PL1-2D_rCQBarjdqnM21sOsx09CtFSVO6Z)

2 changes: 1 addition & 1 deletion stdlib/source/library/lux/data/collection/list.lux
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
(-> (.Array it)
(List it)))
(let [limit (/.size it)
size (n.+ limit (..missing it))
size (n.- (..missing it) limit)

value (empty' size (..of it))]
(loop (next [position 0
Expand Down
10 changes: 5 additions & 5 deletions stdlib/source/library/lux/ffi.jvm.lux
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,13 @@
{#ProtectedP}
{#DefaultP}))

(.every .public State
(.every State
(Variant
{#VolatileS}
{#FinalS}
{#DefaultS}))

(.every .public Inheritance
(.every Inheritance
(Variant
{#FinalI}
{#AbstractI}
Expand Down Expand Up @@ -1025,7 +1025,7 @@
(, (return$ #method_output))
[(,* (list#each class$ #method_exs))]))))

(the .public with_super
(the with_super
(syntax.macro (_ [declaration,method (?code.tuple
(all ?.and
(?text.then projection.declaration' ?code.text)
Expand Down Expand Up @@ -1104,7 +1104,7 @@
type value^^]
(pure [[name pm anns] {#VariableField [sm static? type]}])))))

(the .public with_get|set
(the with_get|set
(syntax.macro (_ [declaration,fields (?code.tuple
(all ?.and
?code.text
Expand Down Expand Up @@ -1197,7 +1197,7 @@
[call_declaration]
Call)

(the .public with_call
(the with_call
(syntax.macro (_ [declaration,methods (?code.tuple
(all ?.and
(?text.then projection.declaration' ?code.text)
Expand Down
3 changes: 1 addition & 2 deletions stdlib/source/library/lux/function/poly/type/mix.lux
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@

(the .public (recursive body)
(for_any (_ it)
(-> (-> (Mix it)
(Mix it))
(-> (Change (Mix it))
(Mix it)))
(function (recursion value init it)
((body recursion) value init it)))
14 changes: 1 addition & 13 deletions stdlib/source/library/lux/math/arithmetic/fixed_point.lux
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
["[1]" local]
["[0]" template]]
[type
["[0]" nominal]]]]
[// (.only Arithmetic)])
["[0]" nominal]]]])

(the .public maximum
Natural
Expand Down Expand Up @@ -240,17 +239,6 @@
(the < (..< @))
))

(the .public (arithmetic @)
(for_any (_ @)
(-> (Point @)
(Arithmetic (Fixed @))))
(implementation
(the + (..+ @))
(the - (..- @))
(the x (..x @))
(the / (../ @))
))

(the .public (as_text @ it)
(for_any (_ @)
(-> (Point @)
Expand Down
1 change: 1 addition & 0 deletions stdlib/source/library/lux/math/number.lux
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
[[.#Integer /integer.base_10]
[.#Revolution /revolution.base_10]
[.#Decimal /decimal.degree]
[.#Decimal /decimal.gradian]
[.#Decimal /decimal.per_cent]
[.#Decimal /decimal.per_mille]
[.#Decimal /decimal.per_myriad]
Expand Down
Loading

0 comments on commit 8472aa2

Please sign in to comment.