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
| '''Test for Payment Processor. | |
| Author: Animesh Ghosh | |
| ''' | |
| import unittest | |
| from unittest.mock import patch | |
| from io import StringIO | |
| from payment_processor import PaymentProcessor | |
| class TestPaymentProcessor(unittest.TestCase): |
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
| Operating System: Linux | |
| CPU Information: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz | |
| Number of Available Cores: 4 | |
| Available memory: 7.46 GB | |
| Elixir 1.16.0 | |
| Erlang 26.2.1 | |
| JIT enabled: true | |
| Benchmark suite executing with the following configuration: | |
| warmup: 2 s |
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 foo | |
| return :bar | |
| ensure | |
| p :foo | |
| end | |
| foo # => :bar but prints :foo before returning | |
| def foo | |
| return :bar |
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
| --- original version found on @iavins Tweet: https://x.com/iavins/status/1871914543590289672 | |
| WITH RECURSIVE numbers(n) AS ( | |
| SELECT 1 | |
| UNION ALL | |
| SELECT n + 1 FROM numbers WHERE n < 9 | |
| ), tree_parts(level, stars, spaces) AS ( | |
| SELECT | |
| n, | |
| REPEAT('*', n * 2 - 1), |
OlderNewer