mirror of
https://github.com/Smaug123/WoofWare.PawPrint
synced 2025-10-11 00:38:40 +00:00
Rejig test harness (#68)
This commit is contained in:
18
WoofWare.PawPrint.Test/sourcesPure/ResizeArray.cs
Normal file
18
WoofWare.PawPrint.Test/sourcesPure/ResizeArray.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace HelloWorldApp
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static int Main(string[] args)
|
||||
{
|
||||
var l = new List<int>();
|
||||
l.Add(8);
|
||||
l.Add(100);
|
||||
var m = l.Select(x => x.ToString()).ToList();
|
||||
// 2 + 108 + (1 + 3) = 114
|
||||
return m.Count + l.Sum() + m.Select(x => x.Length).Sum();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user