Skip to content

Commit

Permalink
dub really wants a 3-part version
Browse files Browse the repository at this point in the history
Update unittests to handle the non-allocating toString() method
  • Loading branch information
aubade committed May 6, 2016
1 parent e7315b3 commit 174c0db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
7 changes: 6 additions & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "DSFML binding for SFML-The Simple and Fast Multimedia Library",
"authors": ["Jeremy DeHaan"],
"homepage": "https://github.com/Jebbs/DSFML",
"version":"2.3",
"version":"2.3.0",
"license": "Zlib",
"dependencies": {
"dsfml:audio": "~>2.3",
Expand All @@ -19,6 +19,7 @@
"targetType": "library",
"sourcePaths": ["src/dsfml/audio"],
"libs": [ "dsfmlc-audio" ],
"dflags":["-m32mscoff"],
"dependencies":
{
"dsfml:system": "~>2.3"
Expand All @@ -29,6 +30,7 @@
"targetType": "library",
"sourcePaths": ["src/dsfml/graphics"],
"libs": [ "dsfmlc-graphics" ],
"dflags":["-m32mscoff"],
"dependencies":
{
"dsfml:system": "~>2.3",
Expand All @@ -39,6 +41,7 @@
"name": "window",
"sourcePaths": ["src/dsfml/window"],
"libs": [ "dsfmlc-window" ],
"dflags":["-m32mscoff"],
"dependencies":
{
"dsfml:system": "~>2.3"
Expand All @@ -49,6 +52,7 @@
"targetType": "library",
"sourcePaths": ["src/dsfml/network"],
"libs": [ "dsfmlc-network" ],
"dflags":["-m32mscoff"],
"dependencies":
{
"dsfml:system": "~>2.3"
Expand All @@ -59,6 +63,7 @@
"targetType": "library",
"importPaths": ["src/"],
"sourcePaths": ["src/dsfml/system"],
"dflags":["-m32mscoff"],
"libs": [ "dsfmlc-system" ]
}
]
Expand Down
7 changes: 0 additions & 7 deletions src/dsfml/graphics/texture.d
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,6 @@ class Texture
{
sfTexture_updateFromRenderWindow(sfPtr, window.sfPtr, x, y);
}

static void flush()
{
sfTexture_flush();
}
}

unittest
Expand Down Expand Up @@ -524,6 +519,4 @@ void sfTexture_bind(const sfTexture* texture);
//Get the maximum texture size allowed
uint sfTexture_getMaximumSize();

void sfTexture_flush();

const(char)* sfErr_getOutput();
2 changes: 1 addition & 1 deletion src/dsfml/network/ipaddress.d
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ unittest

IpAddress googleIP = IpAddress("google.com");

writeln("Google's Ip address: ",googleIP.toString());
writeln("Google's Ip address: ",googleIP);

writeln("Your local Ip Address: ", IpAddress.getLocalAddress());

Expand Down
2 changes: 1 addition & 1 deletion src/dsfml/network/udpsocket.d
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ unittest
serverSocket.receive(temp2,received, receivedFrom, receivedPort);

//What did we get?!
writeln("The data received from ", receivedFrom.toString(), " at port ", receivedPort, " was: ", cast(string)temp2[0..received]);
writeln("The data received from ", receivedFrom, " at port ", receivedPort, " was: ", cast(string)temp2[0..received]);


writeln();
Expand Down

0 comments on commit 174c0db

Please sign in to comment.