about summary refs log tree commit diff stats
path: root/horizon
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-01-17 15:41:24 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-01-17 15:41:24 -0800
commit877b4fae0436bdf22e7c0f911ce8f7030038a04c (patch)
treead84b545ec8d1c1575edcbdcd43075cce1e76967 /horizon
parenta1e8f8d8b41fa9f3ad381ebc7868900a266545c0 (diff)
downloadmu-877b4fae0436bdf22e7c0f911ce8f7030038a04c.tar.gz
576 - helper for printing integers
This requires creating a new data structure called buffer, because
strings are too inefficient for appending to, and we need to know how
long they need to be before we clear them.

But I'm not gonna bother to write tests for all the new primitives I
just introduced, because that's not expedient.

One test for mu is how nicely it handles situations like this without
requiring perfect test hygiene. In this case, I can imagine tools that
will extract tests for a particular function out of all known tests.
Especially if it's a pure function that should be easy. Then just show
each test to the programmer and ask him to give it a reasonable name.
Diffstat (limited to 'horizon')
-rw-r--r--horizon4
1 files changed, 4 insertions, 0 deletions
diff --git a/horizon b/horizon
index a8869da4..f46e56ec 100644
--- a/horizon
+++ b/horizon
@@ -23,3 +23,7 @@ Trace should contain [
   typed "b"
   typed "c"
 ]
+
+---
+
+Extract unit tests for helper out of all existing tests.