17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#import "TestPlugin/TestPlugin.h"
int
main()
{
TestPlugin *plugin;
plugin = [OFPlugin pluginFromFile: "TestPlugin/TestPlugin"];
if ([plugin test: 1234] != 2468) {
puts("\033[K\033[1;31mTest 1/1 failed!\033[m");
return 1;
}
puts("\033[1;32mTests successful: 1/1\033[0m");
return 0;
|
|
|
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#import "TestPlugin/TestPlugin.h"
int
main()
{
TestPlugin *plugin;
plugin = [OFPlugin pluginFromFile: @"TestPlugin/TestPlugin"];
if ([plugin test: 1234] != 2468) {
puts("\033[K\033[1;31mTest 1/1 failed!\033[m");
return 1;
}
puts("\033[1;32mTests successful: 1/1\033[0m");
return 0;
|