summaryrefslogtreecommitdiff
path: root/test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test.cc')
-rw-r--r--test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test.cc b/test.cc
index d31c83f..79410ec 100644
--- a/test.cc
+++ b/test.cc
@@ -264,12 +264,12 @@ int main() {
[&] {
tst("results");
- ::zp::res<::zp::i8s,::zp::i8s> res = ::zp::err<::zp::i8s>(0x45);
+ auto res = ::zp::res<::zp::i8s,::zp::i8s>::err(0x45);
chkeq(res.chk(),false);
- chkeq(res.err(),0x45);
+ chkeq(res.geterr(),0x45);
- res = -0x45;
+ res = ::zp::res<::zp::i8s,::zp::i8s>::oky(-0x45);
auto const fun = [](char const* msg) -> void {
::std::cout << msg << ::std::endl;