Skip to content

Commit

Permalink
Add a test for Real case.
Browse files Browse the repository at this point in the history
  • Loading branch information
ye-luo committed Nov 9, 2023
1 parent fbb07f4 commit 1776046
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/type_traits/tests/test_complex_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,18 @@ class TestComplexHelper
using Cmplx = std::complex<P>;
using Real = RealAlias<Cmplx>;
using CmplxRebuild = ValueAlias<P, Cmplx>;
using RealRebuild = ValueAlias<P, Real>;

public:
void run()
{
Cmplx aa;
CmplxRebuild bb;
aa = bb;

Real cc;
RealRebuild dd(0);
cc = dd;
}
};

Expand Down

0 comments on commit 1776046

Please sign in to comment.