File tree 2 files changed +51
-17
lines changed
M2/Macaulay2/e/unit-tests
2 files changed +51
-17
lines changed Original file line number Diff line number Diff line change 35
35
fail-fast : false
36
36
matrix :
37
37
build-system :
38
- - autotools
39
38
- cmake
40
39
os :
41
- - ubuntu-24.04
42
40
- macos-13
43
41
compiler :
44
42
- default
@@ -141,7 +139,7 @@ jobs:
141
139
- name : Build Macaulay2 using Ninja
142
140
if : matrix.build-system == 'cmake'
143
141
run : |
144
- cmake --build . --target M2-core M2-emacs install-packages
142
+ cmake --build . --target M2-core
145
143
if [[ "${{ runner.os }}" == "Linux" ]] && [[ "${{ matrix.build-system }}" == "cmake" ]]; then
146
144
sudo apt-get install -y -q --no-install-recommends dpkg-dev
147
145
echo "GIT_COMMIT=`git describe --dirty --always --match HEAD`" >> $GITHUB_ENV
@@ -182,10 +180,6 @@ jobs:
182
180
if : matrix.build-system == 'cmake' && runner.os == 'macOS'
183
181
run : |
184
182
set -xe
185
- ./M2 -q --check 1
186
- ./M2 -q --check 2
187
- ./M2 -q --check 3
188
- cmake --build . --target M2-tests
189
183
cmake --build . --target M2-unit-tests
190
184
cmake --build . --target memtailor-unit-tests mathic-unit-tests mathicgb-unit-tests
191
185
ctest -j1 --output-on-failure -R "unit-tests"
Original file line number Diff line number Diff line change @@ -67,20 +67,60 @@ TEST(ARingQQFlint, display)
67
67
R.clear (a);
68
68
}
69
69
70
- TEST (ARingQQFlint, arithmetic )
70
+ TEST (ARingQQFlint, coercions )
71
71
{
72
72
M2::ARingQQFlint R;
73
73
74
74
testCoercions (R);
75
- testNegate (R, ntrials);
76
- testAdd (R, ntrials);
77
- testSubtract (R, ntrials);
78
- testMultiply (R, ntrials);
79
- testDivide (R, ntrials);
80
- testReciprocal (R, ntrials);
81
- // testPower(R, ntrials); // this test can't work, as it expects a finite
82
- // field
83
- testAxioms (R, ntrials);
75
+ }
76
+
77
+ TEST (ARingQQFlint, negate)
78
+ {
79
+ M2::ARingQQFlint R;
80
+
81
+ testNegate (R, 40 );
82
+ }
83
+
84
+ TEST (ARingQQFlint, add)
85
+ {
86
+ M2::ARingQQFlint R;
87
+
88
+ testAdd (R, 40 );
89
+ }
90
+
91
+ TEST (ARingQQFlint, subtract)
92
+ {
93
+ M2::ARingQQFlint R;
94
+
95
+ testSubtract (R, 40 );
96
+ }
97
+
98
+ TEST (ARingQQFlint, multiply)
99
+ {
100
+ M2::ARingQQFlint R;
101
+
102
+ testMultiply (R, 40 );
103
+ }
104
+
105
+ TEST (ARingQQFlint, divide)
106
+ {
107
+ M2::ARingQQFlint R;
108
+
109
+ testDivide (R, 40 );
110
+ }
111
+
112
+ TEST (ARingQQFlint, reciprocal)
113
+ {
114
+ M2::ARingQQFlint R;
115
+
116
+ testReciprocal (R, 40 );
117
+ }
118
+
119
+ TEST (ARingQQFlint, axioms)
120
+ {
121
+ M2::ARingQQFlint R;
122
+
123
+ testAxioms (R, 40 );
84
124
}
85
125
86
126
// Local Variables:
You can’t perform that action at this time.
0 commit comments