Skip to content

Instantly share code, notes, and snippets.

@xdg

xdg/stdout.diff Secret

Created November 18, 2016 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xdg/cadfd51b9e49be3b9a9f1e97a85334c6 to your computer and use it in GitHub Desktop.
Save xdg/cadfd51b9e49be3b9a9f1e97a85334c6 to your computer and use it in GitHub Desktop.
diff --git a/source/bson-corpus/bson-corpus.rst b/source/bson-corpus/bson-corpus.rst
index 5adbb12..778ef4a 100644
--- a/source/bson-corpus/bson-corpus.rst
+++ b/source/bson-corpus/bson-corpus.rst
@@ -9,8 +9,8 @@ BSON Corpus
:Status: Approved
:Type: Standards
:Minimum Server Version: N/A
-:Last Modified: July 29, 2016
-:Version: 1.0
+:Last Modified: November 14, 2016
+:Version: 1.2
.. contents::
@@ -394,4 +394,14 @@ assertions. This makes for easier and safer test case development.
Changes
=======
-None so far.
+Version 1.2 - November 14, 2016
+
+* Removed "invalid flags" BSON Regexp case.
+
+Version 1.1 – October 25, 2016
+
+* Added a "non-alphabetized flags" case to the BSON Regexp corpus file;
+ decoders must be able to read non-alphabetized flags, but encoders must
+ emit alphabetized flags.
+
+* Added an "invalid flags" case to the BSON Regexp corpus file.
diff --git a/source/bson-corpus/tests/regex.json b/source/bson-corpus/tests/regex.json
index abf49b9..dfc2b9c 100644
--- a/source/bson-corpus/tests/regex.json
+++ b/source/bson-corpus/tests/regex.json
@@ -22,6 +22,12 @@
"description": "regex with slash",
"bson": "110000000B610061622F636400696D0000",
"extjson": "{\"a\" : {\"$regex\" : \"ab/cd\", \"$options\" : \"im\"}}"
+ },
+ {
+ "description": "flags not alphabetized",
+ "bson": "100000000B6100616263006D69780000",
+ "canonical_bson": "100000000B610061626300696D780000",
+ "extjson": "{\"a\" : {\"$regex\" : \"abc\", \"$options\" : \"imx\"}}"
}
],
"decodeErrors": [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment