Commit graph

36 commits

Author SHA1 Message Date
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
Ilya Yaroshenko
6b1c486063 base64: update to range.constraints 2014-11-15 03:11:14 +03:00
H. S. Teoh
a40a95527e Don't use built-in .sort in std.base64 unittests 2014-09-28 07:52:01 -07:00
Joakim
60cfc11a11 Make all tests that create a temporary file in the local directory get the path from one central function, so they can be made to use an absolute path 2014-08-04 23:33:25 -05:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
monarch dodra
60187c9d83 Merge pull request #1536 from lionello/bug10893
Fix issue 10893: added missing or renamed DDoc parameters
2013-09-08 08:37:19 -07:00
monarch dodra
aa3b13ce49 Merge pull request #1328 from 9rnsr/fix10230
Issue 10230 - Duplicated buttons for runnable examples
2013-08-31 02:50:17 -07:00
Lionello Lunesu
b4074054ba Fix issue 10893: added missing or renamed DDoc parameters (found by fix to 10236) 2013-08-31 15:36:29 +08:00
Nick Treleaven
6061d747e4 Don't assume wrapped range has a const empty() 2013-08-19 15:23:55 +01:00
k-hara
87bd3315db fix Issue 10230 - Duplicated buttons for runnable examples 2013-07-16 00:45:48 +09:00
monarch dodra
3214c6575e deactivate unsupported test
The test was checking decode works with input range. The truth is that this relied on the input range actually providing length. map *used* to erroneously provide length for narrow strings, but this not the case anymore.

Issue has already been reported as 9543:
http://d.puremagic.com/issues/show_bug.cgi?id=9543
2013-07-05 19:57:35 +02:00
k-hara
92bef24f2f fix Issue 10254 - Purity correctness is broken with constructor 2013-06-20 10:54:30 +09:00
Vladimir Panteleev
ba922fd94b std.base64: Introduce Base64Exception 2013-02-11 17:25:44 +02:00
Vladimir Panteleev
1a5f7f33d8 std.base64: Fix AssertError on certain bad input 2013-02-11 17:13:53 +02:00
nazriel
ec591d4d50 Runnable examples - std.base64 2012-07-15 21:26:32 +00:00
Vladimir Panteleev
9214e9e764 std.base64: Fix invariants when decoding truncated strings
We should never throw Errors on malformed data - especially since the
module does not provide validation facilities. Base64 is widely used on
the web, so encoded strings need to be treated like user input.

The added unittests are purposefully vague. This is to allow changing
the implementation within the spec (whether to throw, ignore or try
parsing trailing bytes).
2012-02-19 19:14:38 +02:00
David Nadlinger
130b1ac71c Whitespace cleanup. 2011-12-04 09:56:14 +01:00
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
SHOO
cdc546892d Retry Issue 5340
http://d.puremagic.com/issues/show_bug.cgi?id=5340

And added some unittest.

The changes of std.base64 are caused by char[] NOT being OutputRange.
is(R2 == char[]) && isOutputRange!(R2, char) always returns false.
2010-12-10 15:01:25 +00:00
Masahiro Nakagawa
3af7a383d1 Fix typo and error handling changed from assert to throw Exception 2010-11-02 09:58:13 +00:00
Masahiro Nakagawa
f15ab73731 Replace base64 module 2010-11-01 19:58:34 +00:00
Walter Bright
b8ce58ccd1 detab sources 2010-08-23 02:14:45 +00:00
Andrei Alexandrescu
3f2b8c12ea 64-bit compatibility work 2010-08-22 20:55:22 +00:00
Andrei Alexandrescu
2a9a6e336c string, wstring are now bidirectional (not random) ranges
std.algorithm: defined move with one argument; levenshtein distance generalized to with all forward ranges; take now has swapped arguments
std.array: empty for arrays is now a @property; front and back for a string and wstring automatically decodes the first/last character; popFront, popBack for string and wstring obey the UTF stride
std.conv: changed the default array formatting from "[a, b, c]" to "a b c"
std.range: swapped order of arguments in take
std.stdio: added readln template
std.variant: now works with statically-sized arrays and const data
std.traits: added isNarrowString
2010-02-22 15:52:31 +00:00
Sean Kelly
747f3cf1e4 Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Walter Bright
cf644a325a add shared 2009-05-08 05:00:12 +00:00
Brad Roberts
eec6be69ed Merge r297:387 from candidate to trunk.
-- add std.getopt
  -- add std.variant
  -- switch strings over to be invariant rather than const
  -- hopefully the last big linux makefile overhaul
  -- fix for bug 1579: write[ln] fails for obj.toString()
  -- fix negative precision handling in std.format
  -- add some file and directory iterator helpers
  -- among other little changes here and there...
2007-10-14 09:22:50 +00:00
Brad Roberts
8f79f3ec35 phobos 2.003 2007-09-10 07:28:23 +00:00
Brad Roberts
de971890b0 phobos 2.000 2007-09-10 06:45:08 +00:00
Brad Roberts
1de7f2e4ba phobos 1.007 2007-09-10 06:02:02 +00:00
Brad Roberts
b76c21ccf9 phobos 0.161 2007-09-10 05:24:49 +00:00
Brad Roberts
d6ac036aff phobos 0.149 2007-09-10 05:11:52 +00:00
Brad Roberts
4a0e23be55 phobos 0.134 2007-09-10 04:51:01 +00:00
Brad Roberts
ccbb884d7d phobos 0.126 2007-09-10 04:44:12 +00:00
Brad Roberts
50a73fee64 phobos 0.79 2007-09-10 03:46:34 +00:00