Skip to content
Permalink
Browse files

Add @safe to std.outbuffer unittests

  • Loading branch information...
atilaneves committed Jun 29, 2016
1 parent cba5d10 commit 4034b6a8fbf2bff60884c55b7cca03bda7a7c0cc
Showing with 4 additions and 4 deletions.
  1. +4 −4 std/outbuffer.d
@@ -336,7 +336,7 @@ class OutBuffer
}

///
unittest
@safe unittest
{
OutBuffer b = new OutBuffer();
b.writef("a%sb", 16);
@@ -363,7 +363,7 @@ class OutBuffer
}

///
unittest
@safe unittest
{
OutBuffer b = new OutBuffer();
b.writefln("a%sb", 16);
@@ -394,7 +394,7 @@ class OutBuffer
}
}

unittest
@safe unittest
{
//printf("Starting OutBuffer test\n");

@@ -412,7 +412,7 @@ unittest
assert(cmp(buf.toString(), "hello world 6") == 0);
}

unittest
@safe unittest
{
import std.range;
static assert(isOutputRange!(OutBuffer, char));

0 comments on commit 4034b6a

Please sign in to comment.
You can’t perform that action at this time.