farsounder / protobuf-matlab

Automatically exported from code.google.com/p/protobuf-matlab
Other
26 stars 13 forks source link

pb_run_test fails #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Build according to ReadMe
2. Run MATLAB
3. Switch to the protobuf-matlab/test directory.
    cd ~/Projects/protobuf/protobuf-matlab/test 
4.Compile test.proto
     !/usr/local/bin/protoc --matlab_out=./ ./test.proto
5. Run the test.
    pb_run_test

Expected successful unit test run.

Instead, it looks like some equality tests failed:

optional_float: 23089.235 != 23089.2344
repeated_float: 23089.235 != 23089.2344
repeated_float: 30948.2351 != 30948.2344

ans = 

                   has_field: [66 java.util.HashMap]
              optional_int32: 33
              optional_int64: 234980098
             optional_uint32: 23098
             optional_uint64: 3.5099e+10
             optional_sint32: 25
             optional_sint64: 98482
            optional_fixed32: 2309
            optional_fixed64: 24350809
           optional_sfixed32: 2309
           optional_sfixed64: 24350809
              optional_float: 2.3089e+04
             optional_double: 2.4305e+04
               optional_bool: 130498
             optional_string: 'asldfkj'
              optional_bytes: [97 115 108 107 100 106 108 106]
     optional_nested_message: [1x1 struct]
    optional_foreign_message: [1x1 struct]
     optional_import_message: [1x1 struct]
        optional_nested_enum: 1
       optional_foreign_enum: 4
        optional_import_enum: 7
       optional_string_piece: ''
               optional_cord: ''
              repeated_int32: [23 33]
              repeated_int64: [9823408 234980098]
             repeated_uint32: [23098 23098]
             repeated_uint64: [23408 3.5099e+10]
             repeated_sint32: [-48 25]
             repeated_sint64: [-234080 98482]
            repeated_fixed32: [2309 230489]
            repeated_fixed64: [23408 24350809]
           repeated_sfixed32: [-2309 230489]
           repeated_sfixed64: [-23408 24350809]
              repeated_float: [2.3089e+04 245789 3.0948e+04]
             repeated_double: [2.4305e+04 2.0398e+04]
               repeated_bool: [130498 9038]
             repeated_string: {'asldfkj'  'asdlkfj'}
              repeated_bytes: {[97 115 108 107 100 106 108 106]  [104 103 115 104]}
     repeated_nested_message: [1x2 struct]
    repeated_foreign_message: [1x2 struct]
     repeated_import_message: [1x2 struct]
        repeated_nested_enum: []
       repeated_foreign_enum: []
        repeated_import_enum: []
       repeated_string_piece: ''
               repeated_cord: ''
               default_int32: 41
               default_int64: 42
              default_uint32: 43
              default_uint64: 44
              default_sint32: -45
              default_sint64: 46
             default_fixed32: 47
             default_fixed64: 48
            default_sfixed32: 49
            default_sfixed64: -50
               default_float: 51.5000
              default_double: 52000
                default_bool: 1
              default_string: 'hello'
               default_bytes: [119 111 114 108 100]
         default_nested_enum: 2
        default_foreign_enum: 5
         default_import_enum: 8
        default_string_piece: 'abc'
                default_cord: '123'
              unknown_fields: []
         descriptor_function: @pb_descriptor_test__TestAllTypes

protobuf-matlab pulled 9-Jan-2015
protobuf 2.4.1
MATLAB Version: 8.3.0.532 (R2014a)  Also happens with R2014b. 
Mac OS X Yosemite 8.0.2 (10600.2.5)

Original issue reported on code.google.com by mep...@me.com on 12 Jan 2015 at 7:37

GoogleCodeExporter commented 9 years ago
Pasted the wrong OS version. It's OS X Yosemite 10.10.1 (14B25).

Original comment by mep...@me.com on 12 Jan 2015 at 9:33