diff options
author | glorioso <glorioso@google.com> | 2019-05-30 14:24:46 -0700 |
---|---|---|
committer | Ron Shapiro <shapiro.rd@gmail.com> | 2019-06-06 11:06:15 -0400 |
commit | ce0f5adbba8db44ee4c48bb58b007a3c99d89517 (patch) | |
tree | 5b88dc0ce72433bab5af5dceeec856217d540559 | |
parent | c72d08eef418f01a7dd1f2d1aedac047f05e7a4e (diff) | |
download | jimfs-ce0f5adbba8db44ee4c48bb58b007a3c99d89517.tar.gz |
Assert that snapshot elements are ordered, as suggested by the comment.
RELNOTES=n/a
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=250762064
-rw-r--r-- | jimfs/src/test/java/com/google/common/jimfs/DirectoryTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jimfs/src/test/java/com/google/common/jimfs/DirectoryTest.java b/jimfs/src/test/java/com/google/common/jimfs/DirectoryTest.java index 6cbe6d8..03f7f6a 100644 --- a/jimfs/src/test/java/com/google/common/jimfs/DirectoryTest.java +++ b/jimfs/src/test/java/com/google/common/jimfs/DirectoryTest.java @@ -224,7 +224,8 @@ public class DirectoryTest { ImmutableSet<Name> snapshot = root.snapshot(); // does not include . or .. and is sorted by the name assertThat(snapshot) - .containsExactly(Name.simple("abc"), Name.simple("bar"), Name.simple("foo")); + .containsExactly(Name.simple("abc"), Name.simple("bar"), Name.simple("foo")) + .inOrder(); } @Test |