Skip to main content

Questions tagged [testing]

The tag has no usage guidance.

15 votes
6 answers
5k views

"Testing" that something does not compile in metaprogramming

Use case Some languages offer techniques to ensure certain requirements at compile time. For example, rust has the NonZeroU32 type that will ensure at compile time ...
mousetail's user avatar
  • 8,531
3 votes
0 answers
144 views

Unit Testing Built Into Language [closed]

I'm mostly looking to poke holes in this design, as well as suggestions on next steps. For the language I'm creating, I think I might have additional keywords and statements available just for test ...
Xtros's user avatar
  • 131
23 votes
6 answers
3k views

Language features for making code easier to unit test

What can programming languages do to make unit testing easier? For the purposes of this question, I'm especially interested in unit testing procedural code with lots of heavy side effects. Let me ...
Greg Nisbet's user avatar
6 votes
2 answers
270 views

How can a compiler's parse errors be tested?

There are fairly straightforward ways to test a compiler's behaviour on valid programs: most obviously, build a suite of programs to run through the compiler, and know what should happen when they run....
Michael Homer's user avatar
  • 13.1k