diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-05-23 23:39:58 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-05-23 23:39:58 +0200 |
commit | 6b77bfc28d36d5b8111e23e15fbe4513a0797f47 (patch) | |
tree | 5bc721352e4f2efd27e77930e72f9ea689dfb858 /src/libexpr | |
parent | 6e984431dd27326681a7cbb56404665c353c834a (diff) |
FlakeRef::to_string(): Check round trip
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/primops/flakeref.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/primops/flakeref.cc b/src/libexpr/primops/flakeref.cc index 3842b3f1a..c42616374 100644 --- a/src/libexpr/primops/flakeref.cc +++ b/src/libexpr/primops/flakeref.cc @@ -194,6 +194,8 @@ std::string FlakeRef::to_string() const else abort(); + assert(FlakeRef(string) == *this); + return string; } |