updates
This commit is contained in:
@@ -13,13 +13,18 @@ int main() {
|
||||
assert(remaining(INFINITY, "h") == "--");
|
||||
assert(number(NAN) == "--");
|
||||
assert(temperature(219, 220, "°C") == "219 / 220 °C");
|
||||
assert(filament_color("#60DE9AFF") == GREEN);
|
||||
assert(filament_color("60de9a") == GREEN);
|
||||
assert(filament_color("#00FF00FF") == GREEN);
|
||||
assert(filament_color("60de9a") == 0x60DE9A);
|
||||
assert(filament_color("#60DE9AZZ") == TRACK);
|
||||
assert(filament_color("unknown") == TRACK);
|
||||
assert(gauge_value(NAN, 100) == 0);
|
||||
assert(gauge_value(110, 100) == 100);
|
||||
assert(gauge_value(-10, 100) == 0);
|
||||
assert(duration_seconds(1.75f, "h") == 6300);
|
||||
assert(duration_seconds(105, "min") == 6300);
|
||||
assert(duration_seconds(NAN, "h") == -1);
|
||||
assert(duration_seconds(1, "") == -1);
|
||||
assert(std::abs(celsius(392, "°F") - 200) < 0.01f);
|
||||
|
||||
Snapshot data;
|
||||
data.online = "on";
|
||||
|
||||
Reference in New Issue
Block a user