darcs

Patch 299 move main unit testing code into module ... (and 2 more)

Title move main unit testing code into module ... (and 2 more)
Superseder Nosy List ganesh, mornfall
Related Issues
Status accepted Assigned To
Milestone

Created on 2010-07-09.21:52:45 by ganesh, last changed 2011-05-10.22:36:00 by darcswatch. Tracked on DarcsWatch.

Files
File name Status Uploaded Type Edit Remove
move-main-unit-testing-code-into-module-with-proper-name-_not-main_.dpatch ganesh, 2010-07-09.21:52:45 text/x-darcs-patch
move-main-unit-testing-code-into-module-with-proper-name-_not-main_.dpatch ganesh, 2010-07-12.16:49:57 text/x-darcs-patch
unnamed ganesh, 2010-07-09.21:52:45
unnamed ganesh, 2010-07-12.16:49:57
See mailing list archives for discussion on individual patches.
Messages
msg11707 (view) Author: ganesh Date: 2010-07-09.21:52:45
A small step on the road to sorting out witnesses in the test suite:

3 patches for repository darcs-unstable@darcs.net:darcs:

Wed Jul  7 19:06:00 BST 2010  Ganesh Sittampalam <ganesh@earth.li>
  * move main unit testing code into module with proper name (not Main)
  This is enable other things than the unit executable to import it
  

Wed Jul  7 20:20:04 BST 2010  Ganesh Sittampalam <ganesh@earth.li>
  * stop using join_patches in Darcs.Test.Unit

Fri Jul  9 22:38:44 BST 2010  Ganesh Sittampalam <ganesh@earth.li>
  * get rid of join_patches
Attachments
msg11718 (view) Author: mornfall Date: 2010-07-12.11:39:45
Ganesh Sittampalam <bugs@darcs.net> writes:

> New submission from Ganesh Sittampalam <ganesh@earth.li>:
>
> A small step on the road to sorting out witnesses in the test suite:

Looks OK, but I am somewhat confused by the conflictor that appears in
the second patch...

conflictor [
hunk ./src/Darcs/Test/Unit.lhs 501
-                               quickhunk 7 "d" "ef"]:<
-                 join_patches [quickhunk 3 "a" "bc",
-                               quickhunk 8 "d" "ef"]),
+                               quickhunk 7 "d" "ef"]),
]
|:
hunk ./src/Darcs/Test/Unit.lhs 496
-                (join_patches [quickhunk 1 "a" "bc",
-                               quickhunk 6 "d" "ef"]:\/:
-                 join_patches [quickhunk 3 "a" "bc",
-                               quickhunk 8 "d" "ef"],
-                 join_patches [quickhunk 1 "a" "bc",
-                               quickhunk 7 "d" "ef"]:<
-                 join_patches [quickhunk 3 "a" "bc",
-                               quickhunk 8 "d" "ef"]),
+                (joinPatches (quickhunk 1 "a" "bc" :>:
+                              quickhunk 6 "d" "ef" :>: NilFL):\/:
+                 joinPatches (quickhunk 3 "a" "bc" :>:
+                              quickhunk 8 "d" "ef" :>: NilFL),
+                 joinPatches (quickhunk 1 "a" "bc" :>:
+                              quickhunk 7 "d" "ef" :>: NilFL):<
+                 joinPatches (quickhunk 3 "a" "bc" :>:
+                              quickhunk 8 "d" "ef" :>: NilFL)),

Particularly, I am not sure what does it mean and how it popped into
existence. Other than that, I am ready to push.

Yours,
   Petr.
msg11719 (view) Author: ganesh Date: 2010-07-12.11:54:21
On Mon, 12 Jul 2010, Petr Rockai wrote:

> Ganesh Sittampalam <bugs@darcs.net> writes:
>
>> New submission from Ganesh Sittampalam <ganesh@earth.li>:
>>
>> A small step on the road to sorting out witnesses in the test suite:
>
> Looks OK, but I am somewhat confused by the conflictor that appears in
> the second patch...

> Particularly, I am not sure what does it mean and how it popped into
> existence. Other than that, I am ready to push.

Sorry. That should have been amended out, I must have submitted the wrong 
thing. I'll check and resend.

Ganesh
msg11734 (view) Author: ganesh Date: 2010-07-12.16:49:57
Here's a fixed version.

I had amended the previous version to remove a conflict as I
thought, but I accidentally amended the wrong patch so the end
result was rather messy!

3 patches for repository http://darcs.net:

Wed Jul  7 19:06:00 BST 2010  Ganesh Sittampalam <ganesh@earth.li>
  * move main unit testing code into module with proper name (not Main)
  This is enable other things than the unit executable to import it
  

Mon Jul 12 17:50:31 BST 2010  Ganesh Sittampalam <ganesh@earth.li>
  * stop using join_patches in Darcs.Test.Unit

Mon Jul 12 17:50:37 BST 2010  Ganesh Sittampalam <ganesh@earth.li>
  * get rid of join_patches
Attachments
msg11735 (view) Author: darcswatch Date: 2010-07-12.20:02:52
This patch bundle (with 3 patches) was just applied to the repository http://darcs.net/.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-27dc6f169b957c83017f47ba93a9f32c9e29be5b
msg14423 (view) Author: darcswatch Date: 2011-05-10.22:36:00
This patch bundle (with 3 patches) was just applied to the repository http://darcs.net/reviewed.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-27dc6f169b957c83017f47ba93a9f32c9e29be5b
History
Date User Action Args
2010-07-09 21:52:45ganeshcreate
2010-07-09 21:55:40darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-1214350e39739ab0a4cdd84fe3d67da603af3563
2010-07-12 11:39:45mornfallsetnosy: + mornfall
messages: + msg11718
2010-07-12 11:54:21ganeshsetmessages: + msg11719
2010-07-12 16:49:58ganeshsetfiles: + move-main-unit-testing-code-into-module-with-proper-name-_not-main_.dpatch, unnamed
messages: + msg11734
2010-07-12 16:51:13darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-1214350e39739ab0a4cdd84fe3d67da603af3563 -> http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-27dc6f169b957c83017f47ba93a9f32c9e29be5b
2010-07-12 20:02:53darcswatchsetstatus: needs-review -> accepted
messages: + msg11735
2011-05-10 20:05:35darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-27dc6f169b957c83017f47ba93a9f32c9e29be5b -> http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-1214350e39739ab0a4cdd84fe3d67da603af3563
2011-05-10 22:36:00darcswatchsetmessages: + msg14423