diff +multiblock/GridTest.m @ 832:5573913a0949 feature/burgers1d

Merged with default, and updated +scheme/Burgers1D accordingly
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Tue, 11 Sep 2018 15:58:35 +0200
parents 6fb354955c37
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/+multiblock/GridTest.m	Tue Sep 11 15:58:35 2018 +0200
@@ -0,0 +1,37 @@
+function tests = GridTest()
+    tests = functiontests(localfunctions);
+end
+
+function testCreation(testCase)
+    g = multiblock.Grid({},{});
+end
+
+function testMissing(testCase)
+    testCase.verifyFail();
+end
+
+function testGetBoundaryNames(testCase)
+    [grids, conn] = prepareAdjecentBlocks();
+
+    mbg = multiblock.Grid(grids, conn, multiblock.BoundaryGroup({1,'w'},{2,'w'}) );
+
+    testCase.verifyFail();
+end
+
+function testGetBoundary(testCase)
+    [grids, conn] = prepareAdjecentBlocks();
+
+    mbg = multiblock.Grid(grids, conn, multiblock.BoundaryGroup({1,'w'},{2,'w'}) );
+    testCase.verifyFail();
+end
+
+
+function [grids, conn] = prepareAdjecentBlocks()
+    grids = {
+        grid.Cartesian([0 1 2], [3 4 5]);
+        grid.Cartesian([1 2], [10 20]);
+    };
+
+    conn = cell(2,2);
+    conn{1, 2} = {'s','n'};
+end
\ No newline at end of file