Skip to content

Commit

Permalink
Expect the wrong thing
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Apr 2, 2024
1 parent f16bb53 commit a7356e7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions geometry/grassmann_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,17 @@ using F = Frame<struct FrameTag>;
PRINCIPIA_CHECK_WELL_FORMED(v.WriteToMessage(&message),
WITH<Vector<Length, GrassmannTest::World>> v,
WITH<serialization::Multivector> message);
PRINCIPIA_CHECK_ILL_FORMED(v.WriteToMessage(&message),
WITH<Vector<Length, F>> v,
WITH<serialization::Multivector> message);
PRINCIPIA_CHECK_ILL_FORMED(v.WriteToMessage(&message),
WITH<Bivector<Length, F>> v,
WITH<serialization::Multivector> message);
PRINCIPIA_CHECK_ILL_FORMED(v.WriteToMessage(&message),
WITH<Trivector<Length, F>> v,
WITH<serialization::Multivector> message);
// TODO(phl): We should refuse to serialize these at compile time; right now
// only deserialization fails.
PRINCIPIA_CHECK_WELL_FORMED(v.WriteToMessage(&message),
WITH<Vector<Length, F>> v,
WITH<serialization::Multivector> message);
PRINCIPIA_CHECK_WELL_FORMED(v.WriteToMessage(&message),
WITH<Bivector<Length, F>> v,
WITH<serialization::Multivector> message);
PRINCIPIA_CHECK_WELL_FORMED(v.WriteToMessage(&message),
WITH<Trivector<Length, F>> v,
WITH<serialization::Multivector> message);

PRINCIPIA_CHECK_WELL_FORMED(
(Vector<Length, GrassmannTest::World>::ReadFromMessage(message)),
Expand Down

0 comments on commit a7356e7

Please sign in to comment.