Created
December 20, 2013 16:15
-
-
Save trishagee/8057129 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Unroll | |
def 'should generate index name #indexName for #index'() { | |
expect: | |
index.getName() == indexName; | |
where: | |
index | indexName | |
new Index('x') | 'x_1' | |
new Index('x', OrderBy.ASC) | 'x_1' | |
new Index('x', OrderBy.DESC) | 'x_-1' | |
new Index(new Index.GeoKey('x')) | 'x_2d' | |
new Index(new Index.OrderedKey('x', OrderBy.ASC), | |
new Index.OrderedKey('y', OrderBy.ASC), | |
new Index.OrderedKey('a', OrderBy.ASC)) | 'x_1_y_1_a_1' | |
new Index(new Index.GeoKey('x'), | |
new Index.OrderedKey('y', OrderBy.DESC)) | 'x_2d_y_-1' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment