This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <iomanip> | |
| #include <iostream> | |
| #define BEGIN_TEST(TestSuite, TestName) \ | |
| bool test__##TestSuite##__##TestName(void) \ | |
| { \ | |
| bool isTrue{true}; | |
| #define END_TEST \ | |
| return isTrue; \ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include "test.hpp" | |
| // Function to add two integers | |
| int addIntegers(const int& a, const int& b) | |
| { | |
| return a + b; | |
| } | |
| // Test case to check commutative property of addIntegers | |
| BEGIN_TEST(AddProps, Commutative) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <sys/types.h> | |
| #include <sys/wait.h> | |
| #include <iostream> | |
| #include <cstdlib> | |
| #define BEGIN_TEST(TestSuite, TestName) \ | |
| bool test__##TestSuite##__##TestName(void) \ | |
| { \ | |
| bool ret; \ | |
| pid_t pid = fork(); \ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | bool test__TestSuite__TestName() | |
| { | |
| bool isTrue{true}; | |
| { | |
| isTrue &= (arg1 == arg2); | |
| } | |
| return isTrue; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def insert(point, node, sDim, tDims): | |
| """Inserts the point to the given tree | |
| Args: | |
| point (tuple) : Coordinates to insert to the tree | |
| node (Node) : Parent node of the tree to compare | |
| sDim (Integer) : Splitting / cutting dimension of the input node | |
| tDims (Integer) : Total number of dimensions | |
| Returns: | |
| Node after insertion | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class Node: | |
| """ A binary-tree node class to store 2d-points""" | |
| def __init__(self, point, left_node, right_node): | |
| """Class initializations | |
| Args: | |
| point (tuple) : Integer tuple with coordinates | |
| left_node (Node, optional) : Node to attach as the left child | |
| right_node (Node, optional) : Node to attach as the right child | |
| """ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def find_min(node, dim, sDim, tDims): | |
| """Finds the node with minimum value in the given dimension | |
| Args: | |
| node (Node) : Entry node to begin search for the min node | |
| dim (Integer) : Dimension to search for the minimum | |
| sDim (Integer) : Splitting / cutting dimension of the input node | |
| tDims (Integer) : Total number of dimensions | |
| Returns: | |
| Point (tuple) with minimum value in the given dimension | |
| """ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def delete(point, node, sDim, tDims): | |
| """Deletes the given point from the tree | |
| Args: | |
| point (tuple) : Coordinates to delete | |
| node (Node) : Entry node to start the search for the coordinates | |
| sDim (Integer) : Splitting / cutting dimension of the input node | |
| tDims (Integer) : Total number of imensions | |
| Returns: | |
| Input node after deletion | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Setup volume claim | |
| apiVersion: v1 | |
| kind: PersistentVolumeClaim | |
| metadata: | |
| name: puzl-volume | |
| spec: | |
| accessModes: | |
| - ReadWriteOnce | |
| resources: | |
| requests: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <iostream> | |
| int main() | |
| { | |
| std::cout << "Hello World" << std::endl; | |
| return 0; | |
| } | 
OlderNewer