mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-16 19:05:05 +00:00
Port to (Turbo) Pascal. Feeling retro ;-)
This commit is contained in:
1 parent
6f972d0c5f
commit
e2b491b8c5
6 files changed
+385
No files matched your search
@@ -0,0 +1,29 @@
|
||||
{F+} { need to set Far Calls in Compiler Options too }
|
||||
program Rose_T;
|
||||
|
||||
uses TPUnit, Rose;
|
||||
|
||||
var Items: ListOfItems;
|
||||
|
||||
procedure CreateItem;
|
||||
begin
|
||||
ResizeList(Items, 1);
|
||||
end;
|
||||
|
||||
procedure DisposeItem;
|
||||
begin
|
||||
ClearList(Items);
|
||||
end;
|
||||
|
||||
procedure Foo;
|
||||
begin
|
||||
InitItem(Items.Elements^[0], 'foo', 0, 0);
|
||||
|
||||
UpdateQuality(Items);
|
||||
|
||||
AssertEqualsStr('name', 'fixme', Items.Elements^[0].Name);
|
||||
end;
|
||||
|
||||
begin
|
||||
RunFixtures('foo', CreateItem, Foo, DisposeItem);
|
||||
end.
|
||||
Reference in new issue
Block a user