⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hugemain.plg

📁 巨型整形实现,长度不受windows机器字长限制,实现了基本的加减乘除等运行.
💻 PLG
📖 第 1 页 / 共 5 页
字号:
 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(229): 'Hugeint & operator=(const Hugeint &)'

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

 

METHOD: void insert(int)(7 test cases)

TEST 1
Name:            AUTO_1_UL_0
Pre Conditions:  ::Hugeint()
Arguments:       x=2147483647 (0x7fffffff)
Arguments Post:  
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(62): Access violation exception

 

 Stack trace:

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

 

TEST 2
Name:            AUTO_1_UL_1
Pre Conditions:  ::Hugeint()
Arguments:       x=-1 (0xffffffff)
Arguments Post:  
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(62): Access violation exception

 

 Stack trace:

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

 

TEST 3
Name:            AUTO_1_UL_2
Pre Conditions:  ::Hugeint()
Arguments:       x=12 (0x0000000c)
Arguments Post:  
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(62): Access violation exception

 

 Stack trace:

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

 

TEST 4
Name:            AUTO_1_UL_3
Pre Conditions:  ::Hugeint()
Arguments:       x=1 (0x00000001)
Arguments Post:  
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(62): Access violation exception

 

 Stack trace:

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

 

TEST 5
Name:            AUTO_1_UL_4
Pre Conditions:  ::Hugeint()
Arguments:       x=-2147483648 (0x80000000)
Arguments Post:  
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(62): Access violation exception

 

 Stack trace:

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

 

TEST 6
Name:            AUTO_1_UL_5
Pre Conditions:  ::Hugeint()
Arguments:       x=0 (0x00000000)
Arguments Post:  
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(62): Access violation exception

 

 Stack trace:

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

 

TEST 7
Name:            AUTO_1_UL_6
Pre Conditions:  ::Hugeint()
Arguments:       x=5 (0x00000005)
Arguments Post:  
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(62): Access violation exception

 

 Stack trace:

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

 

METHOD: void insertfromback(int)(7 test cases)

TEST 1
Name:            AUTO_1_DM_0
Pre Conditions:  ::Hugeint()
Arguments:       x=0 (0x00000000)
Arguments Post:  
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(72): Access violation exception

 

 Stack trace:

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

 

TEST 2
Name:            AUTO_1_DM_1
Pre Conditions:  ::Hugeint()
Arguments:       x=12 (0x0000000c)
Arguments Post:  
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(72): Access violation exception

 

 Stack trace:

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

 

TEST 3
Name:            AUTO_1_DM_2
Pre Conditions:  ::Hugeint()
Arguments:       x=1 (0x00000001)
Arguments Post:  
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(72): Access violation exception

 

 Stack trace:

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

 

TEST 4
Name:            AUTO_1_DM_3
Pre Conditions:  ::Hugeint()
Arguments:       x=-2147483648 (0x80000000)
Arguments Post:  
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(72): Access violation exception

 

 Stack trace:

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

 

TEST 5
Name:            AUTO_1_DM_4
Pre Conditions:  ::Hugeint()
Arguments:       x=-1 (0xffffffff)
Arguments Post:  
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(72): Access violation exception

 

 Stack trace:

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

 

TEST 6
Name:            AUTO_1_DM_5
Pre Conditions:  ::Hugeint()
Arguments:       x=2147483647 (0x7fffffff)
Arguments Post:  
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(72): Access violation exception

 

 Stack trace:

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

 

TEST 7
Name:            AUTO_1_DM_6
Pre Conditions:  ::Hugeint()
Arguments:       x=-5494 (0xffffea8a)
Arguments Post:  
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(72): Access violation exception

 

 Stack trace:

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

 

METHOD: int length(void)(1 test case)

TEST 1
Name:            AUTO_1_4L_0
Pre Conditions:  ::Hugeint()
Arguments:       
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)'

 

METHOD: void makeempty(void)(1 test case)

TEST 1
Name:            AUTO_1_VL_0
Pre Conditions:  ::Hugeint()
Arguments:       
Arguments Post:  
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)'

 

METHOD: Hugeint mul(int)(10 test cases)

TEST 1
Name:            AUTO_1_CM_0
Pre Conditions:  ::Hugeint(), ::ostream_withassign()
Arguments:       i=97 (0x00000061)
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 2
Name:            AUTO_1_CM_1
Pre Conditions:  ::Hugeint(), ::ostream_withassign()
Arguments:       i=-1 (0xffffffff)
Arguments Post:  
Return:          
Post Conditions: 
Status:          TEST FAILED

 Post condition failed for execution result type:

 expected type:    Normal return

⌨️ 快捷键说明

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