summary refs log tree commit diff stats
path: root/tests/destructor
Commit message (Expand)AuthorAgeFilesLines
* use doAssert in tests (#16486)flywind2020-12-281-8/+8
* fixes #16365 [backport] (#16381)Andreas Rumpf2020-12-171-1/+31
* testament: error instead of silently ignore invalid targets; remove pointless...Timothee Cour2020-12-142-2/+2
* testament spec: remove errmsg alias of errormsg (#16188)Timothee Cour2020-11-291-1/+1
* make megatest consistent with unjoined tests wrt newlines, honor newlines in ...Timothee Cour2020-11-281-1/+1
* fix #15825 (#15894)cooldome2020-11-091-0/+11
* Add testcase for #14601 (#15677)Clyybber2020-10-221-1/+45
* renamed '=' to '=copy' [backport:1.2] (#15585)Andreas Rumpf2020-10-155-5/+5
* fixes #14983 (#15320)Andreas Rumpf2020-09-251-1/+14
* fixes #15361 (#15401)Andreas Rumpf2020-09-242-7/+10
* disable sink inference, only enable it for the stdlib. Reason: better source ...Andreas Rumpf2020-07-281-0/+1
* An optimizer for ARC (#14962)Andreas Rumpf2020-07-153-7/+15
* injectdestructors fixes and refactor (#14964)Clyybber2020-07-141-1/+0
* fixes #14925 (#14947)Andreas Rumpf2020-07-091-1/+8
* progressAraq2020-07-081-1/+1
* scoped memory management (#14790)Andreas Rumpf2020-07-041-19/+19
* Fix #14647 (#14776)Clyybber2020-06-281-1/+7
* Add testcases for #11811 and #14315 (#14726)Clyybber2020-06-191-1/+11
* Fix #14568 (#14583)Clyybber2020-06-071-0/+1
* fix #14421 items uses lent T (#14447)Timothee Cour2020-05-297-7/+7
* ARC/ORC: optimize s.setLen(0) to match the old runtime's behaviour (#14423)Andreas Rumpf2020-05-211-1/+1
* Small improvements for string and char repr with gc:arc (#14400)Clyybber2020-05-201-1/+1
* fix #14294 (#14301)cooldome2020-05-111-1/+25
* fix #14217 (#14218)cooldome2020-05-051-0/+26
* fixes #14159 [backport:1.2]Araq2020-05-021-0/+33
* fixes #14054 [backport:1.2] (#14061)Andreas Rumpf2020-04-301-1/+1
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-283-8/+8
* fixes a critical =trace generation bug (see test case) (#14140)Andreas Rumpf2020-04-271-0/+16
* new implementations for --gc:orc (#14121)Andreas Rumpf2020-04-275-0/+6
* Implements RFCs #209 (#13995)cooldome2020-04-161-7/+3
* fixes #13782 (#13834)Andreas Rumpf2020-04-011-1/+21
* faster CIs (#13803)Miran2020-03-301-3/+3
* arc optimizations (#13325)Andreas Rumpf2020-03-184-3/+8
* rewritten goto based exception handling; much cleaner implementation;… (#13...Andreas Rumpf2020-03-171-0/+69
* Fixes #13659 (#13674)cooldome2020-03-171-1/+25
* fixes #12747 [backport] (#13651)cooldome2020-03-162-2/+2
* catchable defects (#13626)Andreas Rumpf2020-03-121-0/+52
* fixes #13436 (#13615)Andreas Rumpf2020-03-101-0/+10
* fixes #13599 (#13614)Andreas Rumpf2020-03-091-0/+39
* sink parameter inference for types that have destructors (#13544)Andreas Rumpf2020-03-042-2/+6
* fixes #13457 (#13458)Andreas Rumpf2020-02-211-1/+8
* Repr v2 progress (#13268)cooldome2020-01-281-1/+1
* ARC: remove unnecessary codeAraq2020-01-261-4/+3
* contributing docs: symbols need package prefix; changed allocStats to nimAllo...Timothee Cour2020-01-258-8/+8
* Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses allocShared0....Ico Doornekamp2020-01-239-56/+31
* fixes #13195 (#13198)cooldome2020-01-201-0/+25
* Revert "fixes #13195"Andrii Riabushenko2020-01-191-25/+0
* revert last commitAndrii Riabushenko2020-01-191-0/+25
* more on arc codegen (#13178)cooldome2020-01-191-1/+20
* make sink operator optional (#13068)cooldome2020-01-172-12/+4
strChar in {'_', ' ', '.'}: strIndex += 1 continue # Since this algorithm will be used to search against Nim documentation, # the below logic prioritizes headers. if not headerMatched and strChar == ':': headerMatched = true scoreState = StartMatch score = toInt(floor(HeadingScaleFactor * toFloat(score))) patIndex = 0 strIndex += 1 continue if strChar == patternChar: case scoreState of StartMatch, WordBoundryMatch: scoreState = LeadingCharMatch of CharMatch: transition(ConsecutiveMatch) of LeadingCharMatch, ConsecutiveMatch: consecutiveMatchCount += 1 scoreState = ConsecutiveMatch score += ord(ConsecutiveMatch) * consecutiveMatchCount if scoreState == LeadingCharMatch: score += ord(LeadingCharMatch) var onBoundary = (patIndex == high(pattern)) if not onBoundary and strIndex < high(str): let nextPatternChar = toLowerAscii(pattern[patIndex + 1]) nextStrChar = toLowerAscii(str[strIndex + 1]) onBoundary = ( nextStrChar notin {'a'..'z'} and nextStrChar != nextPatternChar ) if onBoundary: transition(WordBoundryMatch) of CharDiff, LeadingCharDiff: var isLeadingChar = ( str[strIndex - 1] notin Letters or str[strIndex - 1] in {'a'..'z'} and str[strIndex] in {'A'..'Z'} ) if isLeadingChar: scoreState = LeadingCharMatch #a non alpha or a camel case transition counts as a leading char. # Transition the state, but don't give the bonus yet; wait until we verify a consecutive match. else: transition(CharMatch) patIndex += 1 else: case scoreState of StartMatch: transition(LeadingCharDiff) of ConsecutiveMatch: transition(CharDiff) consecutiveMatchCount = 0 of LeadingCharDiff: if unmatchedLeadingCharCount < MaxUnmatchedLeadingChar: transition(LeadingCharDiff) unmatchedLeadingCharCount += 1 else: transition(CharDiff) strIndex += 1 result = ( score: max(0, score), matched: (score > 0), )