Skip to content

Added tests and docs to custom file class#59

Merged
DrPaulSharp merged 47 commits intoRascalSoftware:masterfrom
DrPaulSharp:test_custom_file
Feb 14, 2023
Merged

Added tests and docs to custom file class#59
DrPaulSharp merged 47 commits intoRascalSoftware:masterfrom
DrPaulSharp:test_custom_file

Conversation

@DrPaulSharp
Copy link
Collaborator

@DrPaulSharp DrPaulSharp commented Feb 10, 2023

Adds the class "testCustomFileClass" which sets out a suite of explicit tests for the custom file class within project class.
Adds custom RAT exceptions to utilities/exceptions and implements them in "customFileClass.m"
Tests for custom exceptions included in "testExceptions"

…iseCustomFileClassOneRow". Also removed code setting dependent property "fileCount"
…ewParams". Also added identifiers to error messages in "customFileClass" for testing.
…omFileClass" and removed redundant routine "getCustomNames"
…CustomName", and "setFileName" in "customFileClass"
@@ -0,0 +1,10 @@
classdef invalidInput < MException
Copy link
Collaborator

@StephenNneji StephenNneji Feb 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference btw invalid type and invalid input?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I was developing the exceptions Invalid input split into invalid type and invalid number of inputs. I'll remove this one and we can always readd it later if needs be.

initialTypesCount = 1;
initialTypesAutoNameCounter = 1;
initialTypesAutoNameString = 'Row';
exampleTable % Example Multi-Type Table for testing
Copy link
Collaborator

@StephenNneji StephenNneji Feb 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there is any benefit to semicolon but its used in some classes so we have to agree a style an unify all

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd spotted this as well. I'll take the semicolons out, which I prefer.

@DrPaulSharp DrPaulSharp merged commit 58a817c into RascalSoftware:master Feb 14, 2023
@DrPaulSharp DrPaulSharp deleted the test_custom_file branch February 14, 2023 15:46
This was referenced Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants