wxMaxima
Loading...
Searching...
No Matches
Macros | Functions
test_DigitGrouping.cpp File Reference

Tests wxm::DigitGroupGaps(), which decides where a number displayed in the worksheet gets the small gaps between its digit groups (GH #192). More...

#include "DigitGrouping.h"
#include <catch2/catch.hpp>
Include dependency graph for test_DigitGrouping.cpp:

Functions

 SCENARIO ("Integers are grouped from the right")
 
 SCENARIO ("Numbers shorter than the minimum length are left alone")
 
 SCENARIO ("Signs don't count as digits and are never separated")
 
 SCENARIO ("Fractions are grouped from the decimal point on")
 
 SCENARIO ("Exponents are never grouped")
 
 SCENARIO ("Things that only start like a number are left alone")
 
 SCENARIO ("The group size can be 4")
 
 SCENARIO ("The locale's group size is 3 or 4")
 
 SCENARIO ("A number the tokenizer split at its decimal point is grouped as one")
 
 SCENARIO ("Number tokens that don't form one number are grouped separately")
 
 SCENARIO ("A digit-group gap is 5/24 em wide, but never invisible")
 
int main (int argc, char *argv[])
 

Detailed Description

Tests wxm::DigitGroupGaps(), which decides where a number displayed in the worksheet gets the small gaps between its digit groups (GH #192).