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

📄 readme

📁 stl的源码
💻
字号:
$Id$===========================STLport testing unit README==================================Purpose=======Provide independent STLport unit tests, with clearly defined pass/failedresult for every single test without any user action (i.e. diff)and without any input request (i.e. files, cin input ...).=====Build=====Use makefile(s): make -f gcc.mak======================Running the test suite======================commad-line syntax as follows:  stl_unit_test [OPTIONS]  where OPTIONS are   -t=CLASS[::TEST]    run the test class CLASS or member test CLASS::TEST   -f=FILE             save output in file FILE instead of stdoutexamples:./stl_unit_test - runs all tests registered with this unit./stl_unit_test -f=out.txt - runs all tests registered with this unit but print results into out.txt instead of stdout./stl_unit_test -t=VectorTest - runs all tests registered in VectorTest class./stl_unit_test -t=VectorTest::vec_test_1  -f=out.txt - runs only VectorTest::vec_test_1() test, print result into out.txt instead of stdout==================CU mini background==================see:http://www.stlport.com/dcforum/DCForumID5/764.htmlNote: cppunit mini sources are modified from original!===============Adding new test===============You can add/create new tests easily just use _template.cpp as your newtest class and do not forget to edit Makefile.incFor guide to CppUnit like tests see http://cppunit.sourceforge.net/==============================================Replacement of regression by unit tests:==============================================regression                  unit-----------------------------------------accum1.cpp              accum_test.cppaccum2.cppadjdiff0.cpp            adj_test.cppadjdiff1.cppadjdiff2.cppadjfind0.cppadjfind1.cppadjfind2.cppadvance.cpp             advance_test.cppalg1.cpp                alg_test.cppalg2.cppalg3.cppalg4.cppalg5.cppbcompos1.cpp            bcompos_test.cppbcompos2.cppbind1st1.cpp            bind_test.cppbind1st2.cppbind2nd1.cppbind2nd2.cppbinsert1.cpp            binsert_test.cppbinsert2.cppbinsrch1.cpp            bsearch_test.cppbinsrch2.cppbnegate1.cpp            bnegate_test.cppbnegate2.cppbvec1.cpp               bvector_test.cppbug.cpp                 -copy1.cpp               copy_test.cppcopy2.cppcopy3.cppcopy4.cppcopyb0.cppcopyb.cppcount0.cpp              count_test.cppcount1.cppcountif1.cppdeque1.cpp              deque_test.cppdivides.cpp             divides_test.cppeqlrnge0.cpp            equal_test.cppeqlrnge1.cppeqlrnge2.cppequal0.cppequal1.cppequal2.cppequalto.cppfill1.cpp               fill_test.cppfilln1.cppfind0.cpp               find_test.cppfind1.cppfindif0.cppfindif1.cppfinsert1.cpp            finsert_test.cppfinsert2.cppfloat_input.cpp         floatio_test.cppfloat_output.cppforeach0.cpp            foreach_test.cppforeach1.cppfstream1.cpp            -func1.cpp               func_test.cppfunc2.cppfunc3.cppgener1.cpp              generator_test.cppgener2.cppgenern1.cppgenern2.cppgreateq.cpp             greater_test.cppgreater.cpphmap1.cpp               hash_test.cpphmmap1.cpphmset1.cpphset2.cppincl0.cpp               includes_test.cppincl1.cppincl2.cppinplmrg1.cpp            inplace_test.cppinplmrg2.cppinrprod0.cpp            innerprod_test.cppinrprod1.cppinrprod2.cppinsert1.cpp             insert_test.cppinsert2.cppioiter.cpp              ioiter_test.cppiota1.cpp               iota_test.cppistmit1.cpp             istmit_test.cppiter1.cpp               iter_test.cppiter2.cppiter3.cppiter4.cppiterswp.cppless.cpp                less_test.cpplesseq.cpplexcmp1.cpp             lexcmp_test.cpplexcmp2.cpplist1.cpp               list_test.cpplist2.cpplist3.cpplist4.cpplogicand.cpp            logic_test.cpplogicnot.cpplogicor.cpplwrbnd1.cpp             bound_test.cpplwrbnd2.cppuprbnd1.cppuprbnd2.cppmap1.cpp                map_test.cppmmap1.cppmmap2.cppmax1.cpp                max_test.cppmax2.cppmaxelem1.cppmaxelem2.cppmemfunptr.cpp           mfunptr_test.cppmerge0.cpp              merge_test.cppmerge1.cppmerge2.cppmin1.cpp                min_test.cpp            min2.cppminelem1.cppminelem2.cppminus.cpp               plusminus.cppmismtch0.cpp            mismatch_test.cppmismtch1.cppmismtch2.cppmkheap0.cpp             heap_test.cppmkheap1.cpppheap0.cpppheap1.cppmodulus.cpp             modulus_test.cppmove_constructor.cpp    mvctor_test.cppmultiset.cpp            multiset_test.cppnegate.cpp              neq_test.cppnequal.cppnextprm0.cpp            perm_test.cppnextprm1.cppnextprm2.cppprevprm0.cppprevprm1.cppprevprm2.cppnthelem0.cpp            nthelm_test.cppnthelem1.cppnthelem2.cppostmit.cpp              ostmit_test.cpppair0.cpp               pair_test.cpppair1.cpppair2.cppparsrt0.cpp             partial_test.cppparsrt1.cppparsrt2.cppparsrtc0.cppparsrtc1.cppparsrtc2.cpppartsum0.cpppartsum1.cpppartsum2.cpppqueue1.cpp             queue_test.cppqueue1.cppptition0.cpp            partition_test.cppptition1.cppstblptn0.cppstblptn1.cppptrbinf1.cpp            ptr2_test.cppptrbinf2.cppptrunf1.cppptrunf2.cppptr_specialization.cpp  ptrspec_test.cppquiet_signal_nan.cpp    -rawiter.cpp             rawiter.cppremcopy1.cpp            rm_cp_test.cppremcpif1.cppremif1.cppremove1.cpprepcpif1.cppreplace0.cppreplace1.cppreplcpy1.cppreplif1.cpprevcopy1.cppreverse1.cppreviter1.cpp            reviter_test.cppreviter2.cpprevbit1.cpprndshuf0.cpp            rndshf_test.cpprndshuf1.cpprndshuf2.cpprotate0.cpp             rotate_copy.cpprotate1.cpprotcopy0.cpprotcopy1.cppsearch0.cpp             search_test.cppsearch1.cppsearch2.cppseek.cpp                -set.cpp                 set_test.cppsetdiff0.cpp            setdiff_test.cppsetdiff1.cppsetdiff2.cppsetsymd0.cppsetsymd1.cppsetsymd2.cppsetintr0.cpp            setinter_test.cppsetintr1.cppsetintr2.cppsetunon0.cpp            setunion_test.cppsetunon1.cppsetunon2.cppsingle.cpp              -slist1.cpp              slist_test.cppsort1.cpp               sort_test.cppsort2.cppstblsrt1.cppstblsrt2.cppsstream1.cpp            -stack1.cpp              stack_test.cppstack2.cppstrass1.cpp             -string1.cpp             string_test.cppstring_mt.cppshort_string.cppswap1.cpp               swap_test.cppswprnge1.cpptimes.cpp               times_test.cpptrnsfrm1.cpp            transform_test.cpptrnsfrm2.cpptstdeq.cpp              -ucompos1.cpp            unary_test.cppucompos2.cppunegate1.cppunegate2.cppuniqcpy1.cpp            unique_test.cppuniqcpy2.cppunique1.cppunique2.cppvec.cpp                 vector_test.cpp======Status======So far all tests from regression directory were ported except following ones:iter2.cpp                       (pointless - already tested in iter1.cpp,                                 see iter_test.cpp)move_constructor.cpp		(not fully tested see mvctor_test.cpp)mset1.cpp                       (moved in multiset.cpp)mset3.cpp                       (moved in multiset.cpp)mset4.cpp                       (moved in multiset.cpp)mset5.cpp                       (moved in multiset.cpp)pair1.cpp                       (pointless - already tested in pair0.cpp,                                 see pair_test.cpp)pair2.cpp                       (pointless - already tested in pair0.cpp,                                 see pair_test.cpp)partsrt0.cpp                    (identic w ith parsrt0.cpp - tested in                                 pair_test.cpp )quiet_signal_nan.cpprevbit2.cpp                     (pointless - already tested in revbit1.cpp,                                 see reviter_test.cpp )rndshuf1.cpp                    (pointless - already tested in rndshuf0.cpp,                                 see rndshf_test.cpp )set1.cpp                        (moved in set.cpp)set2.cpp                        (moved in set.cpp)

⌨️ 快捷键说明

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