Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Mar 13, 2024
1 parent 6104551 commit ed96baa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import math;

int main()
{
int main(int argc, char** argv) {
auto a{ Math::lerchZeta(1, 2, 3) };
auto b{ Math::superLog(1, 2) };
return 0;
}
6 changes: 2 additions & 4 deletions tests/projects/c++/modules/partitions_implunit/src/math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ module math;

import :details;

double Math::superLog(double z, double b)
{
double Math::superLog(double z, double b) {
// Implementation omitted...
return someHelperFunction(z);
}

double Math::lerchZeta(double lambda, double alpha, double s)
{
double Math::lerchZeta(double lambda, double alpha, double s) {
// Implementation omitted...
return someHelperFunction(s);
}
3 changes: 1 addition & 2 deletions tests/projects/c++/modules/partitions_implunit/src/math.mpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export module math; // math module declaration

export namespace Math
{
export namespace Math {
double superLog(double z, double b);
double lerchZeta(double lambda, double alpha, double s);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export module math:details; // math:details implementation partition
module math:details; // math:details implementation partition

double someHelperFunction(double a)
{
double someHelperFunction(double a) {
// Implementation omitted...
return 42;
}

0 comments on commit ed96baa

Please sign in to comment.