hugemain.plg

来自「巨型整形实现,长度不受windows机器字长限制,实现了基本的加减乘除等运行.」· PLG 代码 · 共 2,442 行 · 第 1/5 页

PLG
2,442
字号
 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): 'Hugeint(const Hugeint &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(671): 'Hugeint mul(int)'

 

TEST 3
Name:            AUTO_1_CM_2
Pre Conditions:  ::Hugeint(), ::ostream_withassign()
Arguments:       i=100 (0x00000064)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): 'Hugeint(const Hugeint &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(671): 'Hugeint mul(int)'

 

TEST 4
Name:            AUTO_1_CM_3
Pre Conditions:  ::Hugeint(), ::ostream_withassign()
Arguments:       i=-2147483648 (0x80000000)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): 'Hugeint(const Hugeint &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(671): 'Hugeint mul(int)'

 

TEST 5
Name:            AUTO_1_CM_4
Pre Conditions:  ::Hugeint(), ::ostream_withassign()
Arguments:       i=2 (0x00000002)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(677): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(677): 'Hugeint mul(int)'

 

TEST 6
Name:            AUTO_1_CM_5
Pre Conditions:  ::Hugeint(), ::ostream_withassign()
Arguments:       i=99 (0x00000063)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): 'Hugeint(const Hugeint &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(671): 'Hugeint mul(int)'

 

TEST 7
Name:            AUTO_1_CM_6
Pre Conditions:  ::Hugeint(), ::ostream_withassign()
Arguments:       i=10 (0x0000000a)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): 'Hugeint(const Hugeint &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(671): 'Hugeint mul(int)'

 

TEST 8
Name:            AUTO_1_CM_7
Pre Conditions:  ::Hugeint(), ::ostream_withassign()
Arguments:       i=96 (0x00000060)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): 'Hugeint(const Hugeint &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(671): 'Hugeint mul(int)'

 

TEST 9
Name:            AUTO_1_CM_8
Pre Conditions:  ::Hugeint(), ::ostream_withassign()
Arguments:       i=2147483647 (0x7fffffff)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): 'Hugeint(const Hugeint &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(671): 'Hugeint mul(int)'

 

TEST 10
Name:            AUTO_1_CM_9
Pre Conditions:  ::Hugeint(), ::ostream_withassign()
Arguments:       i=95 (0x0000005f)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(19): 'Hugeint(const Hugeint &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(671): 'Hugeint mul(int)'

 

METHOD: bool operator!=(const Hugeint &)(1 test case)

TEST 1
Name:            AUTO_1_JP_0
Pre Conditions:  ::Hugeint(), 
Arguments:       ::Hugeint()
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(410): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(410): 'int length(void)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(957): 'bool operator==(const Hugeint &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(984): 'bool operator!=(const Hugeint &)'

 

METHOD: bool operator!=(const long &)(6 test cases)

TEST 1
Name:            AUTO_1_KP_0
Pre Conditions:  ::Hugeint()
Arguments:       x=-1 (0xffffffff)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(140): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(140): 'void makeempty(void)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(171): 'Hugeint & operator=(const long &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(990): 'bool operator!=(const long &)'

 

TEST 2
Name:            AUTO_1_KP_1
Pre Conditions:  ::Hugeint()
Arguments:       x=-2147483648 (0x80000000)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(140): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(140): 'void makeempty(void)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(171): 'Hugeint & operator=(const long &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(990): 'bool operator!=(const long &)'

 

TEST 3
Name:            AUTO_1_KP_2
Pre Conditions:  ::Hugeint()
Arguments:       x=0 (0x00000000)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(140): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(140): 'void makeempty(void)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(171): 'Hugeint & operator=(const long &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(990): 'bool operator!=(const long &)'

 

TEST 4
Name:            AUTO_1_KP_3
Pre Conditions:  ::Hugeint()
Arguments:       x=1 (0x00000001)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(140): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(140): 'void makeempty(void)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(171): 'Hugeint & operator=(const long &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(990): 'bool operator!=(const long &)'

 

TEST 5
Name:            AUTO_1_KP_4
Pre Conditions:  ::Hugeint()
Arguments:       x=2147483647 (0x7fffffff)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(140): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(140): 'void makeempty(void)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(171): 'Hugeint & operator=(const long &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(990): 'bool operator!=(const long &)'

 

TEST 6
Name:            AUTO_1_KP_5
Pre Conditions:  ::Hugeint()
Arguments:       x=2003474399 (0x776a97df)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(140): Access violation exception

 

 Stack trace:

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(140): 'void makeempty(void)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(171): 'Hugeint & operator=(const long &)'

        E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(990): 'bool operator!=(const long &)'

 

METHOD: Hugeint operator*(const Hugeint &)(1 test case)

TEST 1
Name:            AUTO_1_EM_0
Pre Conditions:  ::Hugeint(), ::ostream_withassign(), 
Arguments:       ::Hugeint()
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

 obtained type:    Access violation exception

 

 E:\UpLoad\code\vc\算法.数据结构\Hugeint\Hugeint.cpp(713): Access violation exception

 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?