diff options
Diffstat (limited to 'dbtests/matchertests.cpp')
-rw-r--r-- | dbtests/matchertests.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/dbtests/matchertests.cpp b/dbtests/matchertests.cpp index e71988e..696c924 100644 --- a/dbtests/matchertests.cpp +++ b/dbtests/matchertests.cpp @@ -17,7 +17,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "stdafx.h" +#include "pch.h" #include "../db/matcher.h" #include "../db/json.h" @@ -96,6 +96,14 @@ namespace MatcherTests { } }; + class MixedNumericEmbedded { + public: + void run(){ + Matcher m( BSON( "a" << BSON( "x" << 1 ) ) ); + ASSERT( m.matches( BSON( "a" << BSON( "x" << 1 ) ) ) ); + ASSERT( m.matches( BSON( "a" << BSON( "x" << 1.0 ) ) ) ); + } + }; class Size { public: @@ -121,6 +129,7 @@ namespace MatcherTests { add< MixedNumericGt >(); add< MixedNumericIN >(); add< Size >(); + add< MixedNumericEmbedded >(); } } dball; |