### ----------------------------------------------------
### -- BSON::Simple
### -- Licenses: Artistic-2.0
### -- Authors: Geoffrey Broadwell
### -- File: t/02-special.rakutest
### ----------------------------------------------------
### -- Chunk 2 of 2
7498B502537472696E670007000000737472696E670010496E743332002A00000012496E743634002A0000000000000001446F75626C6500000000000000F0BF0542696E617279001000000003A34C38F7C3ABEDC8A37814A992AB8DB60542696E61727955736572446566696E656400050000008001020304050D436F6465000E00000066756E6374696F6E2829207B7D000F436F64655769746853636F7065001B0000000E00000066756E6374696F6E2829207B7D00050000000003537562646F63756D656E74001200000002666F6F0004000000626172000004417272617900280000001030000100000010310002000000103200030000001033000400000010340005000000001154696D657374616D7000010000002A0000000B5265676578007061747465726E0000094461746574696D6545706F6368000000000000000000094461746574696D65506F73697469766500FFFFFF7F00000000094461746574696D654E656761746976650000000080FFFFFFFF085472756500010846616C73650000034442526566003D0000000224726566000B000000636F6C6C656374696F6E00072469640057FD71E96E32AB4225B723FB02246462000900000064617461626173650000FF4D696E6B6579007F4D61786B6579000A4E756C6C0000';


# multi-type-deprecated
matches ⦃
    _id               => BSON::Simple::ObjectID.new('57e193d7a9cc81b4027498b5'),
    Symbol            => BSON::Simple::Symbol('symbol'),
    String            => 'string',
    Int32             => 42,
    Int64             => BSON::Simple::Int64.new(42),
    Double            => -1e0,
    Binary            => BSON::Simple::Binary.new(3, base64 => 'o0w498Or7cijeBSpkquNtg=='),
    BinaryUserDefined => BSON::Simple::Binary.new(0x80, base64 => 'AQIDBAU='),
    Code              => BSON::Simple::JSCode.new(code => 'function() {}'),
    CodeWithScope     => BSON::Simple::ScopedJS.new(code => 'function() {}', scope => {}),
    Subdocument       => ⦃ foo => 'bar' ⦄,
    Array             => [1, 2, 3, 4, 5],
    Timestamp         => BSON::Simple::Timestamp.new(t => 42, i => 1),
    Regex             => BSON::Simple::PCRE_Regex.new(pattern => 'pattern', options => ''),
    DatetimeEpoch     => Instant.from-posix(0),
    DatetimePositive  => Instant.from-posix( 2147483.647),
    DatetimeNegative  => Instant.from-posix(-2147483.648),
    True              => True,
    False             => False,
    DBPointer         => BSON::Simple::DBPointer.new(ref => 'collection',
                             oid => BSON::Simple::ObjectID.new('57e193d7a9cc81b4027498b1')),
    DBRef             => ⦃ '$ref' => 'collection',
                           '$id'  => BSON::Simple::ObjectID.new('57fd71e96e32ab4225b723fb'),
                           '$db'  => 'database' ⦄,
    Minkey            => MinKey,
    Maxkey            => MaxKey,
    Null              => Any,
    Undefined         => Mu,
⦄,
'38020000075F69640057E193D7A9CC81B4027498B50E53796D626F6C000700000073796D626F6C0002537472696E670007000000737472696E670010496E743332002A00000012496E743634002A0000000000000001446F75626C6500000000000000F0BF0542696E617279001000000003A34C38F7C3ABEDC8A37814A992AB8DB60542696E61727955736572446566696E656400050000008001020304050D436F6465000E00000066756E6374696F6E2829207B7D000F436F64655769746853636F7065001B0000000E00000066756E6374696F6E2829207B7D00050000000003537562646F63756D656E74001200000002666F6F0004000000626172000004417272617900280000001030000100000010310002000000103200030000001033000400000010340005000000001154696D657374616D7000010000002A0000000B5265676578007061747465726E0000094461746574696D6545706F6368000000000000000000094461746574696D65506F73697469766500FFFFFF7F00000000094461746574696D654E656761746976650000000080FFFFFFFF085472756500010846616C736500000C4442506F696E746572000B000000636F6C6C656374696F6E0057E193D7A9CC81B4027498B1034442526566003D0000000224726566000B000000636F6C6C656374696F6E00072469640057FD71E96E32AB4225B723FB02246462000900000064617461626173650000FF4D696E6B6579007F4D61786B6579000A4E756C6C0006556E646566696E65640000';


done-testing;


