summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/tests/test_precommit.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@users.noreply.github.com>2022-05-21 17:16:50 +0200
committer GitHub <noreply@github.com>2022-05-22 01:16:50 +1000
commit324f9d44d5c4293645e7bb8f42e7d95d5ac1e604 (patch)
tree1ad2d66458486f184e11536e247309eb6c0161fb /src/lib/netlist/tests/test_precommit.cpp
parentb33946d980772bf8e973b3816684f313a5b4e9ea (diff)
netlist: More c++, less macros, added support for cspell (#9794)
- More c++, less macros * Significantly reduced the use of unused_var and replaced it with [[maybe_unused]] * use enum class in ppmf.h - Changes to testing code in ptest.h * Catch exceptions in more places * The verbosity of the output can now be controlled * Display of test stats totals - added support for cspell - fixed various typos - fixed SUBTARGET=nl build - fixed more file permissions - srcclean and add fix_permissions target to netlist makefile
Diffstat (limited to 'src/lib/netlist/tests/test_precommit.cpp')
-rw-r--r--src/lib/netlist/tests/test_precommit.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/lib/netlist/tests/test_precommit.cpp b/src/lib/netlist/tests/test_precommit.cpp
new file mode 100644
index 00000000000..b0f1dfa98eb
--- /dev/null
+++ b/src/lib/netlist/tests/test_precommit.cpp
@@ -0,0 +1,26 @@
+// license:BSD-3-Clause
+// copyright-holders:Couriersud
+
+///
+/// \file test_pmfp.cpp
+///
+/// tests for plib::pmfp
+///
+
+#include "plib/pconfig.h"
+#include "plib/ppmf.h"
+#include "netlist/nl_config.h"
+
+#include "plib/ptests.h"
+
+PTEST(test_precommit, precommit)
+{
+ PEXPECT_EQ(PPMF_EXPERIMENTAL, 0);
+ PEXPECT_EQ(PPMF_USE_MAME_DELEGATES, 0);
+
+ PEXPECT_EQ(NL_USE_COPY_INSTEAD_OF_REFERENCE, 0);
+ PEXPECT_EQ(NL_USE_BACKWARD_EULER, 1);
+ PEXPECT_EQ(PUSE_FLOAT128, 0);
+ PEXPECT_EQ(NL_USE_FLOAT128, PUSE_FLOAT128);
+ PEXPECT_EQ(AVOID_NOOP_QUEUE_PUSHES, 0);
+}