Welcome to My Web Page
This is a simple example page.
You've clicked the button!
https://youtu.be/wVszuPYsY1c?feature=shared
";
}
```
### Step 4: Serve Your Files (for live testing)
You can use any local server tool to view your files live. Here are a few ways to do it:
1. **Using Visual Studio Code with Live Server**:
- If you're using Visual Studio Code, you can install the **Live Server** extension, which will automatically update the page as you make changes.
- Right-click on your `index.html` file and select **Open with Live Server**.
2. **Using Python (for a simple server)**:
- If you have Python installed, you can quickly serve your files with the following command:
- Open your terminal/command prompt.
- Navigate to the directory containing your files.
- Run the following command:
- For **Python 3.x**:
```
python -m http.server
```
- For **Python 2.x**:
```
python -m SimpleHTTPServer
```
- Then open a browser and go to `http://localhost:8000`.
3. **Using Node.js**:
- You can also use `http-server` if you have Node.js installed:
- First, install it globally with:
```
npm install -g http-server
```
- Then run:
```
http-server
```
- Visit `http://localhost:8080` in your browser.
### Step 5: Edit and View Live Changes
- As soon as you make changes to your HTML, CSS, or JavaScript files, the page will automatically reload if you're using Live Server or the server approach.
- You can edit the files in real-time and see the changes live in your browser.
This setup should help you with live testing your HTML, CSS, and JavaScript. Let me know if you need more details!
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0 .9.0="" although="" automatically="" but="" by="" compilation="" compiler="" context="" custom="" fail="" file="" fine="" import="" in="" injected="" is="" it="" may="" olidity="" plugin="" remix="" remix_accounts.sol="" remix_tests.sol="" required="" test="" testing="" this="" to="" transaction="" unit="" use="" will="" work="">
// File name has to end with '_test.sol', this file can contain more than one testSuite contracts
contract testSuite {
/// 'beforeAll' runs before all other tests
/// More special functions are: 'beforeEach', 'beforeAll', 'afterEach' & 'afterAll'
function beforeAll() public {
// SrZvxuuf46RKLz63qWXYuguc32n-Oe-TF7lLq3p8kLkP5f0RSyEKA8fbfyphd2cBB3nwA52mweP0MY-iOuGEkcV146hKFhcfsdrvhBA_hVa4YikLbfz9SdJyR20so4Tjly_oHDoKqBu2mJ3AywZVtURf_hnGsfAn8_PQyRmeR3IWeTY_S/s1165/chrome_yQxmtw4FjD.png" style="display: block; padding: 1em 0; text-align: center; ">
function checkFailure() public {
Assert.notEqual(uint(1), uint(1), "1 should not be equal to 1");
}
/// Custom Transaction Context: https://remix-ide.readthedocs.io/en/latest/unittesting.html#customization
/// #sender: account-1
/// #value: 100
function checkSenderAndValue() public payable {
// account index varies 0-9, value is in wei
Assert.equal(msg.sender, TestsAccounts.getAccount(1), "Invalid sender");
Assert.equal(msg.value, 100, "Invalid value");
}
}

0 Comments