Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
description: operator-type-number_alias

schemaVersion: "1.0"

createEntities:
- client:
id: &client0 client0
- database:
id: &database0 database0
client: *client0
databaseName: &database0Name test
- collection:
id: &collection0 collection0
database: *database0
collectionName: &collection0Name coll0

initialData:
- collectionName: *collection0Name
databaseName: *database0Name
documents: []

tests:
-
description: type number alias matches int32
operations:
- name: insertOne
object: *collection0
arguments:
document: { _id: 1, x: { $numberInt: "2147483647" } }
- &find
name: find
object: *collection0
arguments:
filter: { _id: 1 }
limit: 1
expectResult:
- { _id: 1, x: { $$type: "number" } }
-
description: type number alias matches int64
operations:
- name: insertOne
object: *collection0
arguments:
document: { _id: 1, x: { $numberLong: "9223372036854775807" } }
- *find
-
description: type number alias matches double
operations:
- name: insertOne
object: *collection0
arguments:
document: { _id: 1, x: { $numberDouble: "2.71828" } }
- *find
-
description: type number alias matches decimal128
operations:
- name: insertOne
object: *collection0
arguments:
document: { _id: 1, x: { $numberDecimal: "3.14159" } }
- *find
Loading