Skip to content

Instantly share code, notes, and snippets.

@FrancescaK
Last active December 20, 2015 18:49
Show Gist options
  • Save FrancescaK/6179167 to your computer and use it in GitHub Desktop.
Save FrancescaK/6179167 to your computer and use it in GitHub Desktop.
Cucumber_BSON
@bson
Feature: Deserialize Elements
As a user of MongoDB
In order to retrieve data from the database
The driver needs to deserialize BSON elements
Scenario Outline: Deserialize singleton BSON objects
Given an IO stream containing <hex_bytes>
When I deserialize the stream
Then the result should be the <type> value <value>
Examples:
| hex_bytes | type | value |
| 10000000016b0026e4839ecd2a094000 | double | 3.1459 |
| 11000000026b0005000000746573740000 | string | test |
| 14000000076b0050d3409d82cb8a4fc700000100 | object_id | 50d3409d82cb8a4fc7000001 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment