~akkartik/basic-test

3a8f345c — Kartik Agaram 11 months ago master
work around sr.ht

https://todo.sr.ht/~sircmpwn/git.sr.ht/80
ee74abba — Kartik Agaram 1 year, 17 days ago
decouple from basic-build repo

Using the `build` script continues to avoid the dependency on `make`, but
this repo can also stand alone with a focus on the test harness.
3f7f56ed — Kartik Agaram 1 year, 20 days ago
move master repo to sr.ht
3b68de05 — Kartik Agaram 1 year, 9 months ago
support running a single test

Added another example test to make it easier to see what's going on.
abc06482 — Kartik Agaram 1 year, 9 months ago
extract a helper
9aa0e64f — Kartik K. Agaram 2 years ago
don't make readers think of Prolog the language
ed26f4e5 — Kartik K. Agaram 2 years ago
.
7adc0e41 — Kartik K. Agaram 2 years ago
settle on a public location for the repo
04222ab5 — Kartik K. Agaram 2 years ago
flesh out the Readme
77cd5334 — Kartik K. Agaram 2 years ago
some cleanup and simplification

Biggest change: replace setup()/teardown() functions with a single
reset(), which is called both before each test and also before exit.

We'll also switch to the C99 language, since it's finally the default
language in the default compiler shipping with the current Ubuntu LTS
(16.04). (We're still not running that distro, but 18 years seems like a
long enough wait for people to upgrade their compilers.)
cda4add8 — Kartik K. Agaram 2 years ago
drop CHECK_EQ since C can't overload '=='

We'll also make one of the tests deliberately fail so that people can
see what a CHECK failure message looks like.
5651ae61 — Kartik K. Agaram 2 years ago
Initial commit.

In converting it to pure C, I'm remembering just how much heavy lifting
`cerr` and operator overloading have been doing in rendering values of
arbitrary types.