Commit graph

18 commits

Author SHA1 Message Date
Pagwin
b655135ea4
abs_sub draft impl for integer.cpp 2024-12-11 16:32:53 -05:00
Pagwin
a1ec5ddaa5
fixed warnings and errors before moving to abs_sub for integer.cpp 2024-12-11 16:28:59 -05:00
Pagwin
255654b284
negatives in addition are handled just need to do abs_sub and I'm done with draft 2024-12-11 16:25:58 -05:00
Pagwin
35efa772f0
redid comparison without addition or subtraction due to realization that doing them relative could lead to cycle 2024-12-11 16:16:01 -05:00
Pagwin
01c0cbb0ec
implemented ostream output op for integer.cpp 2024-12-11 15:45:58 -05:00
Pagwin
3b3470ed35
added modulus and realized more operations are trivial 2024-12-11 15:38:35 -05:00
Pagwin
da22a9e615
implemented all the trivial operations for integer.cpp 2024-12-11 15:25:32 -05:00
Pagwin
d88ba5accc
added for loop to test trivial cases and a comically slow python script to generate all potential test cases up to some number of ops 2024-12-11 15:04:26 -05:00
Pagwin
ae9d9cd27d
turned printing into assert tests and added more tests to track.cpp 2024-12-11 14:24:49 -05:00
Pagwin
63f9f0a7fd
demo'd situation where underlying types don't obey associativity 2024-12-11 14:13:33 -05:00
Pagwin
9a8b559ce4
added a test for a custom datatype backed by stringstream for sum 2024-12-11 14:09:18 -05:00
Pagwin
428c4b1f3d string test for sum 2024-12-11 13:58:16 -05:00
Pagwin
fbee14508d
tests for sum 2024-12-11 13:44:52 -05:00
Pagwin
294b61072e
changed track to use default param 2024-12-11 13:15:25 -05:00
Pagwin
474309ba49
implemented track fully just need to do test code for it 2024-12-11 12:53:09 -05:00
Pagwin
f228430658
impl for sum (maybe) but still need tests for it 2024-12-11 12:41:07 -05:00
Pagwin
4cd1bd8694
boilerplate for integer 2024-12-11 12:40:47 -05:00
github-classroom[bot]
d721fd4efd
add deadline 2024-12-11 05:52:50 +00:00