Created
January 19, 2017 19:24
-
-
Save danny8376/0bdb1ce91973c2aa1884f21c14378b9e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
..........EE..E.EEE..E....F. | |
Failures: | |
1) CrystalLib::Parser types parses complete array | |
Failure/Error: var.type.should eq(IncompleteArrayType.new(PrimitiveType.int)) | |
expected: #<CrystalLib::IncompleteArrayType:0x21f7100 @type=#<CrystalLib::PrimitiveType:0x2158fc0 @kind=Int>> | |
got: #<CrystalLib::ConstantArrayType:0x21f7140 @type=#<CrystalLib::PrimitiveType:0x2158fe0 @kind=Int>, @size=1> | |
# spec/parser_spec.cr:241 | |
2) CrystalLib::Parser parses struct with unexposed struct | |
Don't know how to convert struct foo (119) | |
0x472067: *CallStack::unwind:Array(Pointer(Void)) at ?? | |
0x471ffa: *CallStack#initialize:Array(Pointer(Void)) at ?? | |
0x471fca: *CallStack::new:CallStack at ?? | |
0x45cc8e: *raise<Exception>:NoReturn at ?? | |
0x45cc7e: ??? at ?? | |
0x4cc50d: *CrystalLib::Parser#type<Clang::Type>:CrystalLib::Type+ at ?? | |
0x4cb7b1: *CrystalLib::Parser#type<Clang::Type>:CrystalLib::Type+ at ?? | |
0x4cb5b1: *CrystalLib::Parser#visit_var_declaration<Clang::Cursor>:CrystalLib::Var at ?? | |
0x46c814: ~procProc(Clang::Cursor, Clang::VisitResult) at ?? | |
0x46c660: ~procProc(LibClang::Cursor, LibClang::Cursor, Pointer(Void), Clang::VisitResult) at ?? | |
0x7f3aed328f15: ??? at ?? | |
0x7f3aed32845d: ??? at ?? | |
0x7f3aed328582: ??? at ?? | |
0x7f3aed328990: ??? at ?? | |
0x7f3aed331704: clang_visitChildren at ?? | |
0x4d1288: *Clang::Cursor#visit_children<&Proc(Clang::Cursor, Clang::VisitResult)>:UInt32 at ?? | |
0x4cd293: *CrystalLib::Parser#visit_struct_or_union_declaration<Clang::Cursor, Symbol>:CrystalLib::StructOrUnion at ?? | |
0x4cab9f: *CrystalLib::Parser#visit<Clang::Cursor>:(CrystalLib::ASTNode+ | Nil) at ?? | |
0x46c6fd: ~procProc(Clang::Cursor, Clang::VisitResult) at ?? | |
0x46c660: ~procProc(LibClang::Cursor, LibClang::Cursor, Pointer(Void), Clang::VisitResult) at ?? | |
0x7f3aed328f15: ??? at ?? | |
0x7f3aed32845d: ??? at ?? | |
0x7f3aed328582: ??? at ?? | |
0x7f3aed328bac: ??? at ?? | |
0x7f3aed331704: clang_visitChildren at ?? | |
0x4d1288: *Clang::Cursor#visit_children<&Proc(Clang::Cursor, Clang::VisitResult)>:UInt32 at ?? | |
0x4ca9fe: *CrystalLib::Parser#parse:UInt32 at ?? | |
0x4ca73c: *CrystalLib::Parser::parse<String, Array(String)>:Array(CrystalLib::ASTNode+) at ?? | |
0x4ca707: *CrystalLib::Parser::parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46c4f6: *parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46dcb3: ~procProc(Nil) at ?? | |
0x46bf9f: *it<String, String, Int32, Int32, &Proc(Nil)>:(Array(Spec::Result) | Nil) at ?? | |
0x46ba06: ~procProc(Nil) at ?? | |
0x4ad6f3: *Spec::RootContext::describe<String, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x46b617: *describe<CrystalLib::Parser:Class, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x45c6d4: ??? at ?? | |
0x469a39: main at ?? | |
0x7f3aeb78a291: __libc_start_main at ?? | |
0x45b6ea: _start at ?? | |
0x0: ??? at ?? | |
3) CrystalLib::Parser parses recursive struct | |
Don't know how to convert struct point (119) | |
0x472067: *CallStack::unwind:Array(Pointer(Void)) at ?? | |
0x471ffa: *CallStack#initialize:Array(Pointer(Void)) at ?? | |
0x471fca: *CallStack::new:CallStack at ?? | |
0x45cc8e: *raise<Exception>:NoReturn at ?? | |
0x45cc7e: ??? at ?? | |
0x4cc50d: *CrystalLib::Parser#type<Clang::Type>:CrystalLib::Type+ at ?? | |
0x4cb7b1: *CrystalLib::Parser#type<Clang::Type>:CrystalLib::Type+ at ?? | |
0x4cb5b1: *CrystalLib::Parser#visit_var_declaration<Clang::Cursor>:CrystalLib::Var at ?? | |
0x46c814: ~procProc(Clang::Cursor, Clang::VisitResult) at ?? | |
0x46c660: ~procProc(LibClang::Cursor, LibClang::Cursor, Pointer(Void), Clang::VisitResult) at ?? | |
0x7f3aed328f15: ??? at ?? | |
0x7f3aed32845d: ??? at ?? | |
0x7f3aed328582: ??? at ?? | |
0x7f3aed328990: ??? at ?? | |
0x7f3aed331704: clang_visitChildren at ?? | |
0x4d1288: *Clang::Cursor#visit_children<&Proc(Clang::Cursor, Clang::VisitResult)>:UInt32 at ?? | |
0x4cd293: *CrystalLib::Parser#visit_struct_or_union_declaration<Clang::Cursor, Symbol>:CrystalLib::StructOrUnion at ?? | |
0x4cab9f: *CrystalLib::Parser#visit<Clang::Cursor>:(CrystalLib::ASTNode+ | Nil) at ?? | |
0x46c6fd: ~procProc(Clang::Cursor, Clang::VisitResult) at ?? | |
0x46c660: ~procProc(LibClang::Cursor, LibClang::Cursor, Pointer(Void), Clang::VisitResult) at ?? | |
0x7f3aed328f15: ??? at ?? | |
0x7f3aed32845d: ??? at ?? | |
0x7f3aed328582: ??? at ?? | |
0x7f3aed328bac: ??? at ?? | |
0x7f3aed331704: clang_visitChildren at ?? | |
0x4d1288: *Clang::Cursor#visit_children<&Proc(Clang::Cursor, Clang::VisitResult)>:UInt32 at ?? | |
0x4ca9fe: *CrystalLib::Parser#parse:UInt32 at ?? | |
0x4ca73c: *CrystalLib::Parser::parse<String, Array(String)>:Array(CrystalLib::ASTNode+) at ?? | |
0x4ca707: *CrystalLib::Parser::parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46c4f6: *parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46dde3: ~procProc(Nil) at ?? | |
0x46bf9f: *it<String, String, Int32, Int32, &Proc(Nil)>:(Array(Spec::Result) | Nil) at ?? | |
0x46ba54: ~procProc(Nil) at ?? | |
0x4ad6f3: *Spec::RootContext::describe<String, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x46b617: *describe<CrystalLib::Parser:Class, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x45c6d4: ??? at ?? | |
0x469a39: main at ?? | |
0x7f3aeb78a291: __libc_start_main at ?? | |
0x45b6ea: _start at ?? | |
0x0: ??? at ?? | |
4) CrystalLib::Parser parses struct with nested struct | |
Don't know how to convert struct (anonymous struct at input.c:1:16) (119) | |
0x472067: *CallStack::unwind:Array(Pointer(Void)) at ?? | |
0x471ffa: *CallStack#initialize:Array(Pointer(Void)) at ?? | |
0x471fca: *CallStack::new:CallStack at ?? | |
0x45cc8e: *raise<Exception>:NoReturn at ?? | |
0x45cc7e: ??? at ?? | |
0x4cc50d: *CrystalLib::Parser#type<Clang::Type>:CrystalLib::Type+ at ?? | |
0x4cb5b1: *CrystalLib::Parser#visit_var_declaration<Clang::Cursor>:CrystalLib::Var at ?? | |
0x46c814: ~procProc(Clang::Cursor, Clang::VisitResult) at ?? | |
0x46c660: ~procProc(LibClang::Cursor, LibClang::Cursor, Pointer(Void), Clang::VisitResult) at ?? | |
0x7f3aed328f15: ??? at ?? | |
0x7f3aed32845d: ??? at ?? | |
0x7f3aed328582: ??? at ?? | |
0x7f3aed328990: ??? at ?? | |
0x7f3aed331704: clang_visitChildren at ?? | |
0x4d1288: *Clang::Cursor#visit_children<&Proc(Clang::Cursor, Clang::VisitResult)>:UInt32 at ?? | |
0x4cd293: *CrystalLib::Parser#visit_struct_or_union_declaration<Clang::Cursor, Symbol>:CrystalLib::StructOrUnion at ?? | |
0x4cab9f: *CrystalLib::Parser#visit<Clang::Cursor>:(CrystalLib::ASTNode+ | Nil) at ?? | |
0x46c6fd: ~procProc(Clang::Cursor, Clang::VisitResult) at ?? | |
0x46c660: ~procProc(LibClang::Cursor, LibClang::Cursor, Pointer(Void), Clang::VisitResult) at ?? | |
0x7f3aed328f15: ??? at ?? | |
0x7f3aed32845d: ??? at ?? | |
0x7f3aed328582: ??? at ?? | |
0x7f3aed328bac: ??? at ?? | |
0x7f3aed331704: clang_visitChildren at ?? | |
0x4d1288: *Clang::Cursor#visit_children<&Proc(Clang::Cursor, Clang::VisitResult)>:UInt32 at ?? | |
0x4ca9fe: *CrystalLib::Parser#parse:UInt32 at ?? | |
0x4ca73c: *CrystalLib::Parser::parse<String, Array(String)>:Array(CrystalLib::ASTNode+) at ?? | |
0x4ca707: *CrystalLib::Parser::parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46c4f6: *parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46e206: ~procProc(Nil) at ?? | |
0x46bf9f: *it<String, String, Int32, Int32, &Proc(Nil)>:(Array(Spec::Result) | Nil) at ?? | |
0x46bb3e: ~procProc(Nil) at ?? | |
0x4ad6f3: *Spec::RootContext::describe<String, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x46b617: *describe<CrystalLib::Parser:Class, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x45c6d4: ??? at ?? | |
0x469a39: main at ?? | |
0x7f3aeb78a291: __libc_start_main at ?? | |
0x45b6ea: _start at ?? | |
0x0: ??? at ?? | |
5) CrystalLib::Parser parses typedef struct | |
Don't know how to convert struct foo (119) | |
0x472067: *CallStack::unwind:Array(Pointer(Void)) at ?? | |
0x471ffa: *CallStack#initialize:Array(Pointer(Void)) at ?? | |
0x471fca: *CallStack::new:CallStack at ?? | |
0x45cc8e: *raise<Exception>:NoReturn at ?? | |
0x45cc7e: ??? at ?? | |
0x4cc50d: *CrystalLib::Parser#type<Clang::Type>:CrystalLib::Type+ at ?? | |
0x4cd74e: *CrystalLib::Parser#visit_typedef_declaration<Clang::Cursor>:CrystalLib::Typedef at ?? | |
0x4cac40: *CrystalLib::Parser#visit<Clang::Cursor>:(CrystalLib::ASTNode+ | Nil) at ?? | |
0x46c6fd: ~procProc(Clang::Cursor, Clang::VisitResult) at ?? | |
0x46c660: ~procProc(LibClang::Cursor, LibClang::Cursor, Pointer(Void), Clang::VisitResult) at ?? | |
0x7f3aed328f15: ??? at ?? | |
0x7f3aed32845d: ??? at ?? | |
0x7f3aed328582: ??? at ?? | |
0x7f3aed328bac: ??? at ?? | |
0x7f3aed331704: clang_visitChildren at ?? | |
0x4d1288: *Clang::Cursor#visit_children<&Proc(Clang::Cursor, Clang::VisitResult)>:UInt32 at ?? | |
0x4ca9fe: *CrystalLib::Parser#parse:UInt32 at ?? | |
0x4ca73c: *CrystalLib::Parser::parse<String, Array(String)>:Array(CrystalLib::ASTNode+) at ?? | |
0x4ca707: *CrystalLib::Parser::parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46c4f6: *parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46e7b3: ~procProc(Nil) at ?? | |
0x46bf9f: *it<String, String, Int32, Int32, &Proc(Nil)>:(Array(Spec::Result) | Nil) at ?? | |
0x46bbe5: ~procProc(Nil) at ?? | |
0x4ad6f3: *Spec::RootContext::describe<String, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x46b617: *describe<CrystalLib::Parser:Class, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x45c6d4: ??? at ?? | |
0x469a39: main at ?? | |
0x7f3aeb78a291: __libc_start_main at ?? | |
0x45b6ea: _start at ?? | |
0x0: ??? at ?? | |
6) CrystalLib::Parser parses typedef struct | |
Don't know how to convert struct point (119) | |
0x472067: *CallStack::unwind:Array(Pointer(Void)) at ?? | |
0x471ffa: *CallStack#initialize:Array(Pointer(Void)) at ?? | |
0x471fca: *CallStack::new:CallStack at ?? | |
0x45cc8e: *raise<Exception>:NoReturn at ?? | |
0x45cc7e: ??? at ?? | |
0x4cc50d: *CrystalLib::Parser#type<Clang::Type>:CrystalLib::Type+ at ?? | |
0x4cd74e: *CrystalLib::Parser#visit_typedef_declaration<Clang::Cursor>:CrystalLib::Typedef at ?? | |
0x4cac40: *CrystalLib::Parser#visit<Clang::Cursor>:(CrystalLib::ASTNode+ | Nil) at ?? | |
0x46c6fd: ~procProc(Clang::Cursor, Clang::VisitResult) at ?? | |
0x46c660: ~procProc(LibClang::Cursor, LibClang::Cursor, Pointer(Void), Clang::VisitResult) at ?? | |
0x7f3aed328f15: ??? at ?? | |
0x7f3aed32845d: ??? at ?? | |
0x7f3aed328582: ??? at ?? | |
0x7f3aed328bac: ??? at ?? | |
0x7f3aed331704: clang_visitChildren at ?? | |
0x4d1288: *Clang::Cursor#visit_children<&Proc(Clang::Cursor, Clang::VisitResult)>:UInt32 at ?? | |
0x4ca9fe: *CrystalLib::Parser#parse:UInt32 at ?? | |
0x4ca73c: *CrystalLib::Parser::parse<String, Array(String)>:Array(CrystalLib::ASTNode+) at ?? | |
0x4ca707: *CrystalLib::Parser::parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46c4f6: *parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46ea13: ~procProc(Nil) at ?? | |
0x46bf9f: *it<String, String, Int32, Int32, &Proc(Nil)>:(Array(Spec::Result) | Nil) at ?? | |
0x46bc31: ~procProc(Nil) at ?? | |
0x4ad6f3: *Spec::RootContext::describe<String, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x46b617: *describe<CrystalLib::Parser:Class, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x45c6d4: ??? at ?? | |
0x469a39: main at ?? | |
0x7f3aeb78a291: __libc_start_main at ?? | |
0x45b6ea: _start at ?? | |
0x0: ??? at ?? | |
7) CrystalLib::Parser parses typedef enum | |
Don't know how to convert enum point (119) | |
0x472067: *CallStack::unwind:Array(Pointer(Void)) at ?? | |
0x471ffa: *CallStack#initialize:Array(Pointer(Void)) at ?? | |
0x471fca: *CallStack::new:CallStack at ?? | |
0x45cc8e: *raise<Exception>:NoReturn at ?? | |
0x45cc7e: ??? at ?? | |
0x4cc50d: *CrystalLib::Parser#type<Clang::Type>:CrystalLib::Type+ at ?? | |
0x4cd74e: *CrystalLib::Parser#visit_typedef_declaration<Clang::Cursor>:CrystalLib::Typedef at ?? | |
0x4cac40: *CrystalLib::Parser#visit<Clang::Cursor>:(CrystalLib::ASTNode+ | Nil) at ?? | |
0x46c6fd: ~procProc(Clang::Cursor, Clang::VisitResult) at ?? | |
0x46c660: ~procProc(LibClang::Cursor, LibClang::Cursor, Pointer(Void), Clang::VisitResult) at ?? | |
0x7f3aed328f15: ??? at ?? | |
0x7f3aed32845d: ??? at ?? | |
0x7f3aed328582: ??? at ?? | |
0x7f3aed328bac: ??? at ?? | |
0x7f3aed331704: clang_visitChildren at ?? | |
0x4d1288: *Clang::Cursor#visit_children<&Proc(Clang::Cursor, Clang::VisitResult)>:UInt32 at ?? | |
0x4ca9fe: *CrystalLib::Parser#parse:UInt32 at ?? | |
0x4ca73c: *CrystalLib::Parser::parse<String, Array(String)>:Array(CrystalLib::ASTNode+) at ?? | |
0x4ca707: *CrystalLib::Parser::parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46c4f6: *parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46ec73: ~procProc(Nil) at ?? | |
0x46bf9f: *it<String, String, Int32, Int32, &Proc(Nil)>:(Array(Spec::Result) | Nil) at ?? | |
0x46bc7f: ~procProc(Nil) at ?? | |
0x4ad6f3: *Spec::RootContext::describe<String, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x46b617: *describe<CrystalLib::Parser:Class, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x45c6d4: ??? at ?? | |
0x469a39: main at ?? | |
0x7f3aeb78a291: __libc_start_main at ?? | |
0x45b6ea: _start at ?? | |
0x0: ??? at ?? | |
8) CrystalLib::Parser parses forward declared struct | |
Don't know how to convert struct point (119) | |
0x472067: *CallStack::unwind:Array(Pointer(Void)) at ?? | |
0x471ffa: *CallStack#initialize:Array(Pointer(Void)) at ?? | |
0x471fca: *CallStack::new:CallStack at ?? | |
0x45cc8e: *raise<Exception>:NoReturn at ?? | |
0x45cc7e: ??? at ?? | |
0x4cc50d: *CrystalLib::Parser#type<Clang::Type>:CrystalLib::Type+ at ?? | |
0x4cd74e: *CrystalLib::Parser#visit_typedef_declaration<Clang::Cursor>:CrystalLib::Typedef at ?? | |
0x4cac40: *CrystalLib::Parser#visit<Clang::Cursor>:(CrystalLib::ASTNode+ | Nil) at ?? | |
0x46c6fd: ~procProc(Clang::Cursor, Clang::VisitResult) at ?? | |
0x46c660: ~procProc(LibClang::Cursor, LibClang::Cursor, Pointer(Void), Clang::VisitResult) at ?? | |
0x7f3aed328f15: ??? at ?? | |
0x7f3aed32845d: ??? at ?? | |
0x7f3aed328582: ??? at ?? | |
0x7f3aed328bac: ??? at ?? | |
0x7f3aed331704: clang_visitChildren at ?? | |
0x4d1288: *Clang::Cursor#visit_children<&Proc(Clang::Cursor, Clang::VisitResult)>:UInt32 at ?? | |
0x4ca9fe: *CrystalLib::Parser#parse:UInt32 at ?? | |
0x4ca73c: *CrystalLib::Parser::parse<String, Array(String)>:Array(CrystalLib::ASTNode+) at ?? | |
0x4ca707: *CrystalLib::Parser::parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46c4f6: *parse<String>:Array(CrystalLib::ASTNode+) at ?? | |
0x46f3d3: ~procProc(Nil) at ?? | |
0x46bf9f: *it<String, String, Int32, Int32, &Proc(Nil)>:(Array(Spec::Result) | Nil) at ?? | |
0x46bd69: ~procProc(Nil) at ?? | |
0x4ad6f3: *Spec::RootContext::describe<String, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x46b617: *describe<CrystalLib::Parser:Class, String, Int32, &Proc(Nil)>:Spec::Context+ at ?? | |
0x45c6d4: ??? at ?? | |
0x469a39: main at ?? | |
0x7f3aeb78a291: __libc_start_main at ?? | |
0x45b6ea: _start at ?? | |
0x0: ??? at ?? | |
Finished in 338.59 milliseconds | |
28 examples, 1 failures, 7 errors, 0 pending | |
Failed examples: | |
crystal spec spec/parser_spec.cr:237 # CrystalLib::Parser types parses complete array | |
crystal spec spec/parser_spec.cr:85 # CrystalLib::Parser parses struct with unexposed struct | |
crystal spec spec/parser_spec.cr:92 # CrystalLib::Parser parses recursive struct | |
crystal spec spec/parser_spec.cr:119 # CrystalLib::Parser parses struct with nested struct | |
crystal spec spec/parser_spec.cr:145 # CrystalLib::Parser parses typedef struct | |
crystal spec spec/parser_spec.cr:155 # CrystalLib::Parser parses typedef struct | |
crystal spec spec/parser_spec.cr:165 # CrystalLib::Parser parses typedef enum | |
crystal spec spec/parser_spec.cr:199 # CrystalLib::Parser parses forward declared struct |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment