Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/21/10 18:46:04 (14 years ago)
Author:
epitzer
Message:

Estimate or calculate StringBuffer sizes in advance, use iterator over string splits instead of arrays. (#1138)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Tests/UseCases.cs

    r3935 r3937  
    10651065    }
    10661066
     1067    [TestMethod]
     1068    public void TestStringSplit() {
     1069      string s = "1.2;2.3;3.4;;;4.9";
     1070      var l = s.EnumerateSplit(';').ToList();
     1071      Assert.AreEqual("1.2", l[0]);
     1072      Assert.AreEqual("2.3", l[1]);
     1073      Assert.AreEqual("3.4", l[2]);
     1074      Assert.AreEqual("4.9", l[3]);
     1075    }
     1076
    10671077
    10681078    [ClassInitialize]
Note: See TracChangeset for help on using the changeset viewer.